Skip to content

Commit

Permalink
ImportProcessor can handle URIs with query strings
Browse files Browse the repository at this point in the history
Fixes #479
  • Loading branch information
mrclay committed Apr 3, 2017
1 parent 6237040 commit e904f2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Minify/ImportProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/_test_files/importProcessor/css/input.css
Original file line number Diff line number Diff line change
@@ -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); }
Expand Down

0 comments on commit e904f2e

Please sign in to comment.