Index: trunk/tools/upload-scripts/thumb-handler.php |
— | — | @@ -4,7 +4,8 @@ |
5 | 5 | # sjs sets that to the 404 handler, and puts the original |
6 | 6 | # request in REDIRECT_URL. |
7 | 7 | if (isset($_SERVER['REDIRECT_URL'])) { |
8 | | - $uri = $_SERVER['REDIRECT_URL']; |
| 8 | + # The URL is un-encoded, so put it back how it was. |
| 9 | + $uri = str_replace("%2F", "/", urlencode($_SERVER['REDIRECT_URL'])); |
9 | 10 | } else { |
10 | 11 | $uri = $_SERVER['REQUEST_URI']; |
11 | 12 | } |