summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/file_proxy.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-12 20:08:02 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-12 20:08:02 -0700
commit9588e8604d46e548dc4ac8788589f9f89b1992ab (patch)
tree006afedcdb0c4fb98b7ec63f5710f6e52dfafc5e /modules/gallery/controllers/file_proxy.php
parent980923839930fde45120872dcadd437abfbbc09d (diff)
Use %27 instead of &#039; (the latter is the wrong form of escaping for urls).
Diffstat (limited to 'modules/gallery/controllers/file_proxy.php')
-rw-r--r--modules/gallery/controllers/file_proxy.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php
index 03303d66..c5b34033 100644
--- a/modules/gallery/controllers/file_proxy.php
+++ b/modules/gallery/controllers/file_proxy.php
@@ -32,9 +32,9 @@ class File_Proxy_Controller extends Controller {
$request_uri = $this->input->server("REQUEST_URI");
$request_uri = preg_replace("/\?.*/", "", $request_uri);
- // Unescape %7E (~), %20 ( ) and &#039; (')
+ // Unescape %7E (~), %20 ( ) and %27 (')
// @todo: figure out why we have to do this and unescape everything appropriate
- $request_uri = str_replace(array("%7E", "%20", "&#039;"), array("~", " ", "'"), $request_uri);
+ $request_uri = str_replace(array("%7E", "%20", "%27"), array("~", " ", "'"), $request_uri);
// var_uri: http://example.com/gallery3/var/
$var_uri = url::file("var/");