summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorUrban Müller2015-02-23 15:34:45 +0100
committerUrban Müller2015-02-23 15:34:45 +0100
commit49e94023935f2d3857cd9ec7a8b8bc8c196a9dec (patch)
treef2e958e3653162defe1b84c88ecfb399a60e78cf /itjs.class
parent18a4428b520232cff9fe43b5efca84db551d3fef (diff)
downloaditools-49e94023935f2d3857cd9ec7a8b8bc8c196a9dec.tar.gz
itools-49e94023935f2d3857cd9ec7a8b8bc8c196a9dec.tar.bz2
itools-49e94023935f2d3857cd9ec7a8b8bc8c196a9dec.zip
kill null bytes in files=
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index df33810..5d9cd62 100644
--- a/itjs.class
+++ b/itjs.class
@@ -136,7 +136,7 @@ static function filenames($filelist)
foreach (array_filter(explode(",", basename($filelist))) as $file)
{
- $filenames = $special[$file] ?: (file_exists("$path/" . it::replace(array('\?.*' => ""), $file)) ? "$path/$file" : "$libsearch/itjs/$file");
+ $filenames = $special[$file] ?: (file_exists("$path/" . it::replace(array('[\?\x00].*' => ""), $file)) ? "$path/$file" : "$libsearch/itjs/$file");
foreach (explode(",", $filenames) as $filename)
if (!$seen[$filename]++)