Commit 8d680449 by Qiang Xue

Fixes #1373: optimized FileHelper::filterPath

parent ae8ff09d
......@@ -283,6 +283,11 @@ class BaseFileHelper
return $result;
}
}
if (empty($options['except']) && empty($options['only'])) {
return true;
}
$path = str_replace('\\', '/', $path);
if ($isDir = is_dir($path)) {
$path .= '/';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment