fix OC_Filesystem::isValidPath when using \ instead of / in paths

This commit is contained in:
Robin Appelman 2012-11-02 19:56:34 +01:00
parent 3139636906
commit 3cd416b667

View file

@ -396,6 +396,7 @@ class OC_Filesystem{
* @return bool
*/
static public function isValidPath($path) {
$path = self::normalizePath($path);
if(!$path || $path[0]!=='/') {
$path='/'.$path;
}