Re: [users@httpd] mod_rewrite decodes %20 -> 400 bad request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello André,

--- André Malo <nd@xxxxxxxxx> wrote:

> * <ogjunk-httpd1@xxxxxxxxx> wrote:
> 
> > Hi,
> > 
> > I "solved" this problem by substituting "%20" with "+" characters. 
> > Apparently, mod_rewrite doesn't convert "+" to spaces as it does
> with
> > "%20".
> 
> Your "problem" is home-made. mod_rewrite always works on the
> unescaped
> URI-path and you're explicitly specifying by using [NE] that no
> escaping
> on the final string should be done. So you end up with unescaped
> characters
> in this final string (not only spaces will be a problem).

Actually, that [NE] was there only temporarily.  I added it while I was
trying to tell mod_rewrite _not_ to decode %20 to a space.

I tried it with and without [NE], and it worked the same way in both
situation, translating %20 to a space, and causing 400 Bad Request.

> > I say "solved", as this is a hack, and I hate hacks... :(
> 
> Ha! Then mod_rewrite shouldn't is not a tool for you at all ;-)

:)
Maybe, but it's the best tool around for this type of stuff, as far as
I know.

Otis

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux