From: Andrew Dolgov Date: Tue, 14 May 2013 20:10:10 +0000 (+0400) Subject: get_minified_js: use basename() on cached file X-Git-Tag: 1.8~121 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=32011b9b66bec0b44964b95871bc87d06b5ec525;p=tt-rss.git get_minified_js: use basename() on cached file --- 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) &&