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.
2 parents 69a55f9 + ac0eab1 commit 452dc38Copy full SHA for 452dc38
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