Welcome! Log In Create A New Profile

Advanced

Re: Rewrite automatically unencodes question mark.

Maxim Dounin
August 08, 2012 02:00PM
Hello!

On Wed, Aug 08, 2012 at 01:12:46PM -0400, jimishjoban wrote:

> It seems only the first %3F gets un-encoded. Remaining %3F remains as it
> is... Could it be a bug?

More or less yes, it's weird historic behaviour which should be
eventually fixed (and we even have several TODO test cases
for this, see http://mdounin.ru/hg/nginx-tests/file/tip/rewrite_unescape.t).

For now I would recommend using

return 301 $uri;

which doesn't try to do any unescaping.

Maxim Dounin

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

Rewrite automatically unencodes question mark.

jimishjoban August 08, 2012 07:08AM

Re: Rewrite automatically unencodes question mark.

jimishjoban August 08, 2012 01:12PM

Re: Rewrite automatically unencodes question mark.

Maxim Dounin August 08, 2012 02:00PM

Re: Rewrite automatically unencodes question mark.

jimishjoban August 14, 2012 10:29AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
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