Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-02 23:15:00 +0400
committerRobin Appelman <icewind@owncloud.com>2012-11-02 23:15:00 +0400
commit6540c0fc63347e8145534e09419e0f7ff4fd2e3a (patch)
treedfc7c85ef761a817d6cb55341585edee192a74ad /lib
parentc73eb29b6e4acd32914f12afd94122f1ca4647bf (diff)
fix OC_Filesystem::isValidPath when using \ instead of / in paths
Diffstat (limited to 'lib')
-rw-r--r--lib/filesystem.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 372b611453d..ea415b00665 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -361,6 +361,7 @@ class OC_Filesystem{
* @return bool
*/
static public function isValidPath($path){
+ $path = str_replace('\\', '/', $path);
if(!$path || $path[0]!=='/'){
$path='/'.$path;
}