diff options
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/legacy/OC_Image.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index f2fa2058faa..74e82e62b16 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -598,7 +598,7 @@ class OC_Image implements \OCP\IImage { * @return bool true if allocating is allowed, false otherwise */ private function checkImageSize($path) { - $size = getimagesize($path); + $size = @getimagesize($path); if (!$size) { return true; } @@ -619,7 +619,7 @@ class OC_Image implements \OCP\IImage { * @return bool true if allocating is allowed, false otherwise */ private function checkImageDataSize($data) { - $size = getimagesizefromstring($data); + $size = @getimagesizefromstring($data); if (!$size) { return true; } |