URL Unescaping in rewrite

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

URL Unescaping in rewrite

Ankur Gupta
Hello,

 When trying to rewrite a URL like:     /a/b to ?q=a&i=b

 when a is something of the form  "XYZ%26300"
 
 the rewritten URL becomes ?q=XYZ&300&i=b

 Why does nginx unescape the URL on rewrite and how can this be avoided?

Thanks,
Ankur
Reply | Threaded
Open this post in threaded view
|

Re: URL Unescaping in rewrite

Edho P Arief
On Fri, May 29, 2009 at 9:07 AM, Ankur Gupta <[hidden email]> wrote:
> Hello,
>  When trying to rewrite a URL like:     /a/b to ?q=a&i=b
>  when a is something of the form  "XYZ%26300"
>
>  the rewritten URL becomes ?q=XYZ&300&i=b
>  Why does nginx unescape the URL on rewrite and how can this be avoided?
> Thanks,
> Ankur

http://marc.info/?l=nginx&m=123376507722007&w=2


--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org