Welcome! Log In Create A New Profile

Advanced

Re: ngx unescape uri bug

Maxim Dounin
March 25, 2013 07:48AM
Hello!

On Mon, Mar 25, 2013 at 03:11:10PM +0800, David Shee wrote:

> I'm Zuwen Shi from China,I find a unescape uri bug in your program.
> The source code location is src\core\ngx_string.c->ngx_unescape_uri
> If I put a string "%%s%elect",it convert the string to "%slect",and %% to
> %,%el to l,actually the right convert is "%%s%elect".

I would rather say that behaviour is undefined in case of
incorrect input, and both results are correct.

> So,I patch the ngx_unescape_uri like below,the red part is which I modified.

You may want to post unified diff into nginx-devel@ mailing list.
And please don't use html. Thank you.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

ngx unescape uri bug

David Shee March 25, 2013 03:12AM

Re: ngx unescape uri bug

Maxim Dounin March 25, 2013 07:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready