summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/itjs.class b/itjs.class
index 45b68de..0a57465 100644
--- a/itjs.class
+++ b/itjs.class
@@ -133,10 +133,10 @@ static function filenames($filelist)
foreach (it::match("[-\w.=?&]+", basename($filelist), array('all' => true)) as $file) # split by comma but ignore illegal chars
{
- $filenames = $special[$file] ?: (file_exists("$local/" . it::match('[^?]*', $file)) ? "$local/$file" : "$libsearch/itjs/$file");
+ $filenames = $special[$file] ?: (file_exists("$local/" . it::match('^[^?]*', $file)) ? "$local/$file" : "$libsearch/itjs/$file");
foreach (explode(",", $filenames) as $filename)
- if (!$seen[$filename]++ && file_exists(it::match('[^?]*', $filename)))
+ if (!$seen[$filename]++ && file_exists(it::match('^[^?]*', $filename)))
$result[] = $filename;
}