Silence warnings on invalid images in image proxy
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 27 Nov 2016 23:03:33 +0000 (00:03 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 27 Nov 2016 23:03:33 +0000 (00:03 +0100)
wcfsetup/install/files/lib/action/ImageProxyAction.class.php

index c08a39735d0f6f48f6d8958b5005f6233620303d..bd224e3c19ae249dd1088c5209b8d72bad4a4a36 100644 (file)
@@ -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]) {