From 19df6d853af319d7d955d5cb65b50cb9af550e79 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 19 Nov 2017 13:47:34 +0100 Subject: [PATCH] Increase length of logged request responses in `HTTPException` --- .../install/files/lib/util/exception/HTTPException.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/exception/HTTPException.class.php b/wcfsetup/install/files/lib/util/exception/HTTPException.class.php index 50ba3f286e..de475fdea0 100644 --- a/wcfsetup/install/files/lib/util/exception/HTTPException.class.php +++ b/wcfsetup/install/files/lib/util/exception/HTTPException.class.php @@ -36,7 +36,7 @@ class HTTPException extends SystemException implements IExtraInformationExceptio */ public function getExtraInformation() { $reply = $this->http->getReply(); - $body = StringUtil::truncate(preg_replace('/[\x00-\x1F\x80-\xFF]/', '.', $reply['body']), 80, StringUtil::HELLIP, true); + $body = StringUtil::truncate(preg_replace('/[\x00-\x1F\x80-\xFF]/', '.', $reply['body']), 512, StringUtil::HELLIP, true); return [ ['Body', $body], -- 2.20.1