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 c73eb29 commit 6540c0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/filesystem.php
Expand Up @@ -361,6 +361,7 @@ static public function getLocalPath($path) {
* @return bool
*/
static public function isValidPath($path){
$path = str_replace('\\', '/', $path);
if(!$path || $path[0]!=='/'){
$path='/'.$path;
}
Expand Down

0 comments on commit 6540c0f

Please sign in to comment.