From 0b4b590256d64f8bed080522ae296e8204ba509b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 16 Aug 2016 20:11:28 +0200 Subject: [PATCH] Log exceptions in ImageProxyAction --- .../files/lib/action/ImageProxyAction.class.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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(); } } -- 2.20.1