URL Unescaping in rewrite


#1

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


#2

On Fri, May 29, 2009 at 9:07 AM, Ankur G. removed_email_address@domain.invalid 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