]> source.dussan.org Git - nextcloud-server.git/commitdiff
dirname('/test.txt') returns '\' on windows whereas on linux we get back '.'
authorThomas Mueller <thomas.mueller@tmit.eu>
Fri, 14 Jun 2013 09:59:30 +0000 (11:59 +0200)
committerThomas Mueller <thomas.mueller@tmit.eu>
Fri, 14 Jun 2013 09:59:30 +0000 (11:59 +0200)
lib/files/cache/updater.php

index 6fee0d58454a44186c6fa7bac5fc3338755926ee..87c33a313a482ebb755ef0bbdfc3ac56bfbb37ec 100644 (file)
@@ -103,7 +103,7 @@ class Updater {
        static public function correctFolder($path, $time) {
                if ($path !== '' && $path !== '/') {
                        $parent = dirname($path);
-                       if ($parent === '.') {
+                       if ($parent === '.' || $parent === '\\') {
                                $parent = '';
                        }
                        /**