summaryrefslogtreecommitdiffstats
path: root/lib/files/cache
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-31 18:16:44 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-31 18:16:44 -0500
commitd0a50fae8317e4b4871027ee4b2940ab5443961f (patch)
treeb34c7b7225bd2d9addff0059ca3d31b362a08027 /lib/files/cache
parentaea8b0ff5cfe871456f3c1cb8dcf021e21eb2831 (diff)
downloadnextcloud-server-d0a50fae8317e4b4871027ee4b2940ab5443961f.tar.gz
nextcloud-server-d0a50fae8317e4b4871027ee4b2940ab5443961f.zip
Fix eTagUpdate and add tests
Diffstat (limited to 'lib/files/cache')
-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 26041590091..cfc1ec731e2 100644
--- a/lib/files/cache/updater.php
+++ b/lib/files/cache/updater.php
@@ -54,7 +54,7 @@ class Updater {
}
static public function eTagUpdate($path) {
- if ($path !== '') {
+ if ($path !== '' && $path !== '/') {
$parent = dirname($path);
if ($parent === '.') {
$parent = '';