diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index 51d0d64526889..bade2a1af3709 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -595,7 +595,7 @@ private function checkImageMemory($width, $height) { * @return bool true if allocating is allowed, false otherwise */ private function checkImageSize($path) { - $size = getimagesize($path); + $size = @getimagesize($path); if (!$size) { return true; } @@ -616,7 +616,7 @@ private function checkImageSize($path) { * @return bool true if allocating is allowed, false otherwise */ private function checkImageDataSize($data) { - $size = getimagesizefromstring($data); + $size = @getimagesizefromstring($data); if (!$size) { return true; }