]> git.wh0rd.org - tt-rss.git/commitdiff
get_minified_js: use basename() on cached file
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 14 May 2013 20:10:10 +0000 (00:10 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 14 May 2013 20:10:10 +0000 (00:10 +0400)
include/functions.php

index 48bb39d287fc7be3aa4280c3993a9abfea70717b..149809a35dad81d79f12fcac71fcf68a72c5acab 100644 (file)
 
                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) &&