Skip to content

Commit e904f2e

Browse files
committed
ImportProcessor can handle URIs with query strings
Fixes #479
1 parent 6237040 commit e904f2e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/Minify/ImportProcessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ private function __construct($currentDir, $previewsDir = "")
5454

5555
private function _getContent($file, $is_imported = false)
5656
{
57+
$file = preg_replace('~\\?.*~', '', $file);
5758
$file = realpath($file);
5859
if (! $file
5960
|| in_array($file, self::$filesIncluded)

tests/_test_files/importProcessor/css/input.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url(adjacent.css) screen;
1+
@import url(adjacent.css?ver=1) screen;
22
@import "1/tv.css" tv, projection;
33
@import "../lib/css/example.css";
44
input foo { background: red url(/red.gif); }

0 commit comments

Comments
 (0)