mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix OC_Image: Prevent E_WARNING from getimagesize*
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
1eb2edce76
commit
ac0eab19b6
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue