From 8b3cc9a6c494ecf7ec3262925b9e0c1381c0154e Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 24 Jun 2014 19:53:32 +0200 Subject: [ticket/12755] Apply de morgan to conditional PHPBB3-12755 --- phpBB/includes/functions_upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index daa3550205..69f10911ec 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -806,7 +806,7 @@ class fileupload $length = false; $timer_stop = time() + $this->upload_timeout; - while (!($length && $filesize >= $length) && !@feof($fsock)) + while ((!$length || $filesize < $length) && !@feof($fsock)) { if ($get_info) { -- cgit v1.2.1