From bd3ead0d3181f74fd666b21ef83df8a6b2efc12d Mon Sep 17 00:00:00 2001 From: ringmaster Date: Thu, 14 Nov 2013 09:42:56 -0500 Subject: [PATCH] Compare dirname() results to DIRECTORY_SEPARATOR, not '/' --- lib/private/files/cache/updater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php index da22356700..d45c5e17fc 100644 --- a/lib/private/files/cache/updater.php +++ b/lib/private/files/cache/updater.php @@ -142,7 +142,7 @@ class Updater { $cache->update($id, array('mtime' => $time, 'etag' => $storage->getETag($internalPath))); if ($realPath !== '') { $realPath = dirname($realPath); - if($realPath === '/') { + if($realPath === DIRECTORY_SEPARATOR ) { $realPath = ""; } // check storage for parent in case we change the storage in this step