Forum: NGINX URL Unescaping in rewrite

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ankur G. (Guest)
on 2009-05-29 06:15
(Received via mailing list)
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
Edho P Arief (Guest)
on 2009-05-29 06:24
(Received via mailing list)
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
This topic is locked and can not be replied to.