From: Tim Düsterhus Date: Tue, 16 Aug 2016 18:11:28 +0000 (+0200) Subject: Log exceptions in ImageProxyAction X-Git-Tag: 3.0.0_Beta_1~728 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0b4b590256d64f8bed080522ae296e8204ba509b;p=GitHub%2FWoltLab%2FWCF.git Log exceptions in ImageProxyAction --- diff --git a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php index f1020880b7..0c2bd92a06 100644 --- a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php @@ -56,8 +56,13 @@ class ImageProxyAction extends AbstractAction { // download image if (!file_exists($fileLocation)) { - $request = new HTTPRequest($url); - $request->execute(); + try { + $request = new HTTPRequest($url); + $request->execute(); + } + catch (SystemException $e) { + throw new IllegalLinkException(); + } $image = $request->getReply()['body']; // check if image is linked @@ -79,9 +84,11 @@ class ImageProxyAction extends AbstractAction { exit; } catch (SystemException $e) { + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } catch (CryptoException $e) { + \wcf\functions\exception\logThrowable($e); throw new IllegalLinkException(); } }