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.
D4f9172ef4420dd4d518b550d9a9c9fd?d=identicon&s=25 Ankur Gupta (Guest)
on 2009-05-29 04: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
96dfd0f0a8399d3b03feba1e6a562e0a?d=identicon&s=25 Edho P Arief (Guest)
on 2009-05-29 04:24
(Received via mailing list)
On Fri, May 29, 2009 at 9:07 AM, Ankur Gupta <ankur655@gmail.com> 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.