diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-20 01:17:25 -0700 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-20 01:17:25 -0700 |
commit | 884c6b5a82fb13c8f2b4fd029b5a16d41e5fc602 (patch) | |
tree | 92ce39d6d8b720adf003b5e4c074812f2ffd582d /apps/files_trashbin | |
parent | e9644c2f52270aa1a1f345ed38bb2e66a4e8752d (diff) | |
parent | cbeccb2fcd3d3d445726c9e0cd5b8e6c8285a1ea (diff) | |
download | nextcloud-server-884c6b5a82fb13c8f2b4fd029b5a16d41e5fc602.tar.gz nextcloud-server-884c6b5a82fb13c8f2b4fd029b5a16d41e5fc602.zip |
Merge pull request #4512 from owncloud/readdir-strict-equals
use strict equals in readdir loops to prevent issues with '0' files
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php index 2dbaefe7a78..27f8407db06 100644 --- a/apps/files_trashbin/index.php +++ b/apps/files_trashbin/index.php @@ -23,7 +23,7 @@ if ($dir) { $dirlisting = true; $dirContent = $view->opendir($dir); $i = 0; - while($entryName = readdir($dirContent)) { + while(($entryName = readdir($dirContent)) !== false) { if (!\OC\Files\Filesystem::isIgnoredDir($entryName)) { $pos = strpos($dir.'/', '/', 1); $tmp = substr($dir, 0, $pos); |