From 87521f6c6e19bb2cff21ad0792604d24a6d6403e Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Fri, 14 Jun 2013 11:59:30 +0200 Subject: [PATCH] dirname('/test.txt') returns '\' on windows whereas on linux we get back '.' --- lib/files/cache/updater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/files/cache/updater.php b/lib/files/cache/updater.php index 6fee0d5845..87c33a313a 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 = ''; } /**