We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c05c24 commit 11897bbCopy full SHA for 11897bb
lib/private/legacy/OC_Image.php
@@ -598,7 +598,7 @@ private function checkImageMemory($width, $height) {
598
* @return bool true if allocating is allowed, false otherwise
599
*/
600
private function checkImageSize($path) {
601
- $size = getimagesize($path);
+ $size = @getimagesize($path);
602
if (!$size) {
603
return true;
604
}
@@ -619,7 +619,7 @@ private function checkImageSize($path) {
619
620
621
private function checkImageDataSize($data) {
622
- $size = getimagesizefromstring($data);
+ $size = @getimagesizefromstring($data);
623
624
625
0 commit comments