From: Thomas Mueller Date: Fri, 14 Jun 2013 09:59:30 +0000 (+0200) Subject: dirname('/test.txt') returns '\' on windows whereas on linux we get back '.' X-Git-Tag: v6.0.0alpha2~615^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=87521f6c6e19bb2cff21ad0792604d24a6d6403e;p=nextcloud-server.git dirname('/test.txt') returns '\' on windows whereas on linux we get back '.' --- diff --git a/lib/files/cache/updater.php b/lib/files/cache/updater.php index 6fee0d58454..87c33a313a4 100644 --- a/lib/files/cache/updater.php +++ b/lib/files/cache/updater.php @@ -103,7 +103,7 @@ class Updater { static public function correctFolder($path, $time) { if ($path !== '' && $path !== '/') { $parent = dirname($path); - if ($parent === '.') { + if ($parent === '.' || $parent === '\\') { $parent = ''; } /**