Browse Source

Fixes #1373: optimized FileHelper::filterPath

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
8d68044982
  1. 5
      framework/yii/helpers/BaseFileHelper.php

5
framework/yii/helpers/BaseFileHelper.php

@ -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 .= '/';

Loading…
Cancel
Save