Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix OC_Filesystem::isValidPath when using \ instead of / in paths
  • Loading branch information
icewind1991 committed Nov 2, 2012
1 parent 3139636 commit 3cd416b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/filesystem.php
Expand Up @@ -396,6 +396,7 @@ static public function getLocalPath($path) {
* @return bool
*/
static public function isValidPath($path) {
$path = self::normalizePath($path);
if(!$path || $path[0]!=='/') {
$path='/'.$path;
}
Expand Down

0 comments on commit 3cd416b

Please sign in to comment.