Possible rewrite regular expression bug?
Peter Hoang
lists at ruby-forum.com
Tue Jun 24 20:03:51 MSD 2008
Furthermore, it seems like NGINX seems to decode the parameter in
rewrite rules. For example, I have the following rule:
if ($args ~ ^q=([^&]+)$) {
set $q $1;
rewrite ^/j /cms/q-$q.html? permanent;
}
Now if I enter the http://localhost/j?q=c%2B%2B then NGINX will redirect
me to http://localhost/cms/q-c++.html . I was expected that the final
url would be http://localhost/cms/q-%2B%2B.html. Is there a way to
prevent this from happening? Thanks.
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list