[Pkg-owncloud-commits] [owncloud] 07/239: Compare dirname() results to DIRECTORY_SEPARATOR, not '/'

David Prévot taffit at moszumanska.debian.org
Fri Nov 29 01:32:11 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit bd3ead0d3181f74fd666b21ef83df8a6b2efc12d
Author: ringmaster <epithet at gmail.com>
Date:   Thu Nov 14 09:42:56 2013 -0500

    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 da22356..d45c5e1 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

-- 
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