diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-24 11:59:29 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-24 11:59:29 +0200 |
commit | 0525341a1243bcf1ef992407af524e391efd7624 (patch) | |
tree | 77129051fddbcdeb04003120bbb9f5e3bf61c1c6 /apps | |
parent | 9babcfb9e22cb09f0d0af759b6491c45ff2f2278 (diff) | |
parent | 3efac5a4f2e8bd5cd0884598244929c2028c1894 (diff) | |
download | nextcloud-server-0525341a1243bcf1ef992407af524e391efd7624.tar.gz nextcloud-server-0525341a1243bcf1ef992407af524e391efd7624.zip |
Merge pull request #11754 from owncloud/fix-division-null
Prevent division by zero
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/ajax/newfile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index 392fc5bd1c8..b4d91514a2a 100644 --- a/apps/files/ajax/newfile.php +++ b/apps/files/ajax/newfile.php @@ -33,7 +33,7 @@ function progress($notification_code, $severity, $message, $message_code, $bytes case STREAM_NOTIFY_PROGRESS: if ($bytes_transferred > 0) { - if (!isset($filesize)) { + if (!isset($filesize) || $filesize === 0) { } else { $progress = (int)(($bytes_transferred/$filesize)*100); if($progress>$lastsize) { //limit the number or messages send |