%2F problem in query string

Hi, I’ve this location stanza:
location ~ .(gif|jpg|png)$ {
rewrite ^/images/s/(.).jpg$ /img.php?f=s&e=$1 break;
rewrite ^/images/t/(.
).jpg$ /img.php?f=t&e=$1 break;
proxy_cache BACKEND;
proxy_cache_valid 200 1w;

But if nginx encounters this URL: - app.testsite.com - [01/Oct/2010:12:08:56 +0200]
“GET /images/s/0Atma%2F%2FHrs%2FI%3D.jpg HTTP/1.1” 200 0
“Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100723
Ubuntu/9.04 (jaunty) Firefox/3.6.8” “-” []

it’s rewriting to:

APACHE - - [01/Oct/2010:12:08:58 +0200] “GET
/img.php?f=t&e=0Atma/Hrs/I= HTTP/1.0” 200"

Is it a right behaviour or it’s a bug?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs