summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-06-14 11:59:30 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2013-06-14 11:59:30 +0200
commit87521f6c6e19bb2cff21ad0792604d24a6d6403e (patch)
tree955a8e2c2d3cd9221fbb7c57b95c5f390f21b9a2
parent84a8aea410053686678f8efa6ba00ac63d31133e (diff)
downloadnextcloud-server-87521f6c6e19bb2cff21ad0792604d24a6d6403e.tar.gz
nextcloud-server-87521f6c6e19bb2cff21ad0792604d24a6d6403e.zip
dirname('/test.txt') returns '\' on windows whereas on linux we get back '.'
-rw-r--r--lib/files/cache/updater.php2
1 files changed, 1 insertions, 1 deletions
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 = '';
}
/**