[Pkg-owncloud-commits] [owncloud] 32/199: Make the recursive delete more robust

David Prévot taffit at moszumanska.debian.org
Sun Jun 1 18:53:06 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 be8326668aa29170b93570036936d174247cdbeb
Author: Robin Appelman <icewind at owncloud.com>
Date:   Fri May 23 13:31:45 2014 +0200

    Make the recursive delete more robust
---
 lib/private/helper.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/helper.php b/lib/private/helper.php
index 4ad792d..e9ca036 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -407,7 +407,7 @@ class OC_Helper {
 		if (is_dir($dir)) {
 			$files = scandir($dir);
 			foreach ($files as $file) {
-				if ($file != "." && $file != "..") {
+				if ($file !== '' && $file !== "." && $file !== "..") {
 					self::rmdirr("$dir/$file");
 				}
 			}

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