/[Frey]/trunk/mojo-relax-url-chars.diff
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/mojo-relax-url-chars.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 633 - (show annotations)
Sun Nov 30 01:46:13 2008 UTC (15 years, 4 months ago) by dpavlin
File size: 720 byte(s)
work on Mojo server which is now partially supported
(form post doesn't seem to work yet)

This implementation is based on Mojo instead of Mojolicious
removing bunch of code and complications, so it will probably
become default once fixed
1 diff --git a/lib/Mojo/Message/Request.pm b/lib/Mojo/Message/Request.pm
2 index 7b34661..d6cf32e 100755
3 --- a/lib/Mojo/Message/Request.pm
4 +++ b/lib/Mojo/Message/Request.pm
5 @@ -219,7 +219,7 @@ sub _parse_start_line {
6 ^\s* # Start
7 ([a-zA-Z]+) # Method
8 \s+ # Whitespace
9 - ([0-9a-zA-Z\$\-_\.\!\?\#\=\*\(\)\,\%\/\&\~]+) # Path
10 + ([0-9a-zA-Z\$\-_\.\!\?\#\=\*\(\)\,\%\/\&\~\:\+]+) # Path
11 (?:\s+HTTP\/(\d+)\.(\d+))? # Version (optional)
12 $ # End
13 /x

  ViewVC Help
Powered by ViewVC 1.1.26