Welcome! Log In Create A New Profile

Advanced

Re: Trouble with rewrite module and uri_escape (and patch)

July 30, 2010 09:40AM
On Fri, Jul 30, 2010 at 07:01:42PM +0900, Daisuke Murase (typester) wrote:

> Hi,
>
> I have nginx/0.7.67 and a following rewrite setting:
>
> rewrite ^/entry/(.*) /entry?title=$1;
>
> When request uri contains %3b (escaped ;), it's decoded like following:
>
> Request: /entry/abc%3bdef
> Result: /entry?title=abc;def
>
> But %26 (escaped &) is not decoded:
>
> Request: /entry/abc%26def
> Result: /entry?title=abc%26def
>
> At HTTP URI spec, ; should be treated as query separator equal to & IMHO
>
> I wrote quick fix for this:
> http://gist.github.com/500097
>
> I don't know this is correct way, but I want to fix this problem.
> Review this please.

You are right, thank you.


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Trouble with rewrite module and uri_escape (and patch)

Daisuke Murase (typester) July 30, 2010 06:08AM

Re: Trouble with rewrite module and uri_escape (and patch)

Igor Sysoev July 30, 2010 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 236
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready