diff --git a/lib/Minify/ImportProcessor.php b/lib/Minify/ImportProcessor.php index 09ec64c9..4191f328 100644 --- a/lib/Minify/ImportProcessor.php +++ b/lib/Minify/ImportProcessor.php @@ -54,6 +54,7 @@ private function __construct($currentDir, $previewsDir = "") private function _getContent($file, $is_imported = false) { + $file = preg_replace('~\\?.*~', '', $file); $file = realpath($file); if (! $file || in_array($file, self::$filesIncluded) diff --git a/tests/_test_files/importProcessor/css/input.css b/tests/_test_files/importProcessor/css/input.css index 15347335..5b2fcd2a 100644 --- a/tests/_test_files/importProcessor/css/input.css +++ b/tests/_test_files/importProcessor/css/input.css @@ -1,4 +1,4 @@ -@import url(adjacent.css) screen; +@import url(adjacent.css?ver=1) screen; @import "1/tv.css" tv, projection; @import "../lib/css/example.css"; input foo { background: red url(/red.gif); }