summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-20 01:17:25 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-20 01:17:25 -0700
commit884c6b5a82fb13c8f2b4fd029b5a16d41e5fc602 (patch)
tree92ce39d6d8b720adf003b5e4c074812f2ffd582d /apps/files_trashbin
parente9644c2f52270aa1a1f345ed38bb2e66a4e8752d (diff)
parentcbeccb2fcd3d3d445726c9e0cd5b8e6c8285a1ea (diff)
downloadnextcloud-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.php2
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);