diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-07-12 20:08:02 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-12 20:08:02 -0700 | 
| commit | 9588e8604d46e548dc4ac8788589f9f89b1992ab (patch) | |
| tree | 006afedcdb0c4fb98b7ec63f5710f6e52dfafc5e /modules/gallery | |
| parent | 980923839930fde45120872dcadd437abfbbc09d (diff) | |
Use %27 instead of ' (the latter is the wrong form of escaping for urls).
Diffstat (limited to 'modules/gallery')
| -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 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 ' (') +    // 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", "'"), 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/"); | 
