summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 715247c..45b68de 100644
--- a/itjs.class
+++ b/itjs.class
@@ -136,7 +136,7 @@ static function filenames($filelist)
$filenames = $special[$file] ?: (file_exists("$local/" . it::match('[^?]*', $file)) ? "$local/$file" : "$libsearch/itjs/$file");
foreach (explode(",", $filenames) as $filename)
- if (!$seen[$filename]++ && file_exists($filename))
+ if (!$seen[$filename]++ && file_exists(it::match('[^?]*', $filename)))
$result[] = $filename;
}