From 32011b9b66bec0b44964b95871bc87d06b5ec525 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 May 2013 00:10:10 +0400 Subject: [PATCH] get_minified_js: use basename() on cached file --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 48bb39d2..149809a3 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4118,7 +4118,7 @@ foreach ($files as $js) { if (!isset($_GET['debug'])) { - $cached_file = CACHE_DIR . "/js/$js.js"; + $cached_file = CACHE_DIR . "/js/".basename($js).".js"; if (file_exists($cached_file) && is_readable($cached_file) && -- 2.39.5