URL Unescaping in rewrite

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

On Fri, May 29, 2009 at 9:07 AM, Ankur G. [email protected] 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