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 d9e9761099
commit a1c37d4be5
1 changed files with 1 additions and 0 deletions

View File

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