From f46ac60ee302e310563cc344d980116d97b2e1d9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 13 Jul 2017 15:23:32 +0200 Subject: [PATCH] Fixed ob clearing --- wcfsetup/install/files/lib/system/WCF.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index e9496ee09f..2ccc546afd 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -258,7 +258,9 @@ class WCF { if (ob_get_level()) { // discard any output generated before the exception occured, prevents exception // being hidden inside HTML elements and therefore not visible in browser output - ob_end_clean(); + // + // ob_get_level() can return values > 1, if the PHP setting `output_buffering` is on + while (ob_get_level()) ob_end_clean(); // `identity` is the default "encoding" and basically means that the client // must treat the content as if the header did not appear in first place, this -- 2.20.1