mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix OC_Image: Prevent E_WARNING from getimagesize*
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
5589071173
commit
f73ef9731c
1 changed files with 2 additions and 2 deletions
|
|
@ -595,7 +595,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;
|
||||
}
|
||||
|
|
@ -616,7 +616,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