diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-11-02 23:15:00 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-11-02 23:15:00 +0400 |
commit | 6540c0fc63347e8145534e09419e0f7ff4fd2e3a (patch) | |
tree | dfc7c85ef761a817d6cb55341585edee192a74ad /lib | |
parent | c73eb29b6e4acd32914f12afd94122f1ca4647bf (diff) |
fix OC_Filesystem::isValidPath when using \ instead of / in paths
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filesystem.php | 1 |
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; } |