Fix incorrect handling of path separator on Windows systems

This commit is contained in:
Kijin Sung 2016-04-01 14:47:34 +09:00
parent d81998c588
commit 921d7d8568
3 changed files with 4 additions and 6 deletions

View file

@ -145,7 +145,7 @@ class FileHandler
$output = array();
foreach ($list as $filename)
{
$filename = str_replace(array('/\\', '//'), '/', $filename);
$filename = str_replace(array('\\', '//'), '/', $filename);
$basename = $concat_prefix ? basename($filename) : $filename;
if ($basename[0] === '.' || ($filter && !preg_match($filter, $basename)))
{