From 34e3792885ee4a6f7e29d5dbd7a38d39d0ad2bdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 28 Nov 2016 00:03:33 +0100 Subject: [PATCH] Silence warnings on invalid images in image proxy --- wcfsetup/install/files/lib/action/ImageProxyAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php index c08a39735d..bd224e3c19 100644 --- a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php @@ -85,7 +85,7 @@ class ImageProxyAction extends AbstractAction { $image = $request->getReply()['body']; // check file type - $imageData = getimagesizefromstring($image); + $imageData = @getimagesizefromstring($image); if (!$imageData) throw new \DomainException(); switch ($imageData[2]) { -- 2.20.1