[Pkg-owncloud-commits] [owncloud] 108/121: Do not filemtime() on "." directory. Use empty string instead
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 16:44:41 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit b1b745c052001810399ddf2aee763a03c98b1ea3
Author: Joas Schilling <nickvergessen at gmx.de>
Date: Mon Aug 11 17:05:35 2014 +0200
Do not filemtime() on "." directory. Use empty string instead
Fix #9928
---
lib/private/files/cache/updater.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index 8bfa5fc..4b70acb 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -180,6 +180,11 @@ class Updater {
$cache = $storage->getCache();
$parentId = $cache->getParentId($internalPath);
$parent = dirname($internalPath);
+
+ if ($parent === '.' || $parent === '/' || $parent === '\\') {
+ $parent = '';
+ }
+
if ($parentId != -1) {
$cache->update($parentId, array('storage_mtime' => $storage->filemtime($parent)));
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list