summaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-02 19:56:34 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-02 19:56:34 +0100
commita1c37d4be5ce8d6fa95b19465193ea51676a1766 (patch)
treef325fcda5c1dcaf3e6e521c72288d4971426499e /lib/filesystem.php
parentd9e97610999ddf9f3a060b786f22d0abb054521e (diff)
downloadnextcloud-server-a1c37d4be5ce8d6fa95b19465193ea51676a1766.tar.gz
nextcloud-server-a1c37d4be5ce8d6fa95b19465193ea51676a1766.zip
fix OC_Filesystem::isValidPath when using \ instead of / in paths
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 3b6772c9849..79649a69fd7 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -396,6 +396,7 @@ class OC_Filesystem{
* @return bool
*/
static public function isValidPath($path) {
+ $path = self::normalizePath($path);
if(!$path || $path[0]!=='/') {
$path='/'.$path;
}