From cce2f3e77ac0b79b5cc94a5404693e358adf2e54 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 21 May 2009 05:54:59 +0000 Subject: Ignore query parameters in the file proxy. This strips off the recently added cache buster query param. --- core/controllers/file_proxy.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/controllers/file_proxy.php') 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/"); -- cgit v1.2.3