diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-21 05:54:59 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-21 05:54:59 +0000 |
commit | cce2f3e77ac0b79b5cc94a5404693e358adf2e54 (patch) | |
tree | fe09e370bd74300e697dcf3858471f1ae17b10f4 /core | |
parent | 6f279e4c2db7aa60e13a0a5dfa9cd5cd28aa24ff (diff) |
Ignore query parameters in the file proxy. This strips off the
recently added cache buster query param.
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/file_proxy.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/controllers/file_proxy.php b/core/controllers/file_proxy.php index d903be32..f3c5f109 100644 --- a/core/controllers/file_proxy.php +++ b/core/controllers/file_proxy.php @@ -30,6 +30,7 @@ class File_Proxy_Controller extends Controller { public function __call($function, $args) { // request_uri: http://example.com/gallery3/var/trunk/albums/foo/bar.jpg $request_uri = $this->input->server("REQUEST_URI"); + $request_uri = preg_replace("/\?.*/", "", $request_uri); // var_uri: http://example.com/gallery3/var/ $var_uri = url::file("var/"); |