diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-01 23:20:36 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-01 23:20:36 -0700 |
commit | 3b6567f38c206f1302c7b22d94d5eae4b458311a (patch) | |
tree | 9739faae9e82776b6529fbdb4fe4bf107fa346d1 /modules/gallery/controllers | |
parent | 91c7eb120023ab3d8e1511af6c9f6b6c1109232e (diff) |
Unescape %20 into " " also.
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r-- | modules/gallery/controllers/file_proxy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php index dfdb4f34..1f885e53 100644 --- a/modules/gallery/controllers/file_proxy.php +++ b/modules/gallery/controllers/file_proxy.php @@ -32,8 +32,8 @@ class File_Proxy_Controller extends Controller { $request_uri = $this->input->server("REQUEST_URI"); $request_uri = preg_replace("/\?.*/", "", $request_uri); - // Firefox converts ~ to %7E breaking our url comparison, below. Convert that back here. - $request_uri = str_replace("%7E", "~", $request_uri); + // Unescape %7E ("~") and %20 (" ") + $request_uri = str_replace(array("%7E", "%20"), array("~", " "), $request_uri); // var_uri: http://example.com/gallery3/var/ $var_uri = url::file("var/"); |