diff options
author | Urban Müller | 2015-02-23 15:34:45 +0100 |
---|---|---|
committer | Urban Müller | 2015-02-23 15:34:45 +0100 |
commit | 49e94023935f2d3857cd9ec7a8b8bc8c196a9dec (patch) | |
tree | f2e958e3653162defe1b84c88ecfb399a60e78cf /itjs.class | |
parent | 18a4428b520232cff9fe43b5efca84db551d3fef (diff) | |
download | itools-49e94023935f2d3857cd9ec7a8b8bc8c196a9dec.tar.gz itools-49e94023935f2d3857cd9ec7a8b8bc8c196a9dec.tar.bz2 itools-49e94023935f2d3857cd9ec7a8b8bc8c196a9dec.zip |
kill null bytes in files=
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]++) |