From: Roland Häder Date: Tue, 26 Aug 2008 13:45:07 +0000 (+0000) Subject: More fixes for JS bug X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ec9a232162634c199cc28ba050be9b4f8214e7f;p=mailer.git More fixes for JS bug --- diff --git a/inc/functions.php b/inc/functions.php index 56d8a18411..f2806f6b64 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -163,16 +163,14 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) { // Output the raw HTML code function OUTPUT_RAW ($HTML) { - if ((isBooleanConstantAndTrue('mxchange_installed')) && (basename($_SERVER['PHP_SELF']) != "install.php")) { - // Not in install-mode so strip slashes away - echo stripslashes($HTML); - } else { - // Output directly in install-mode - echo $HTML; - } + // Output stripped HTML code to avoid broken JavaScript code, etc. + echo stripslashes($HTML); - // Flush the output - flush(); + // Flush the output if only _OB_CACHING is not "on" + if (_OB_CACHING != "on") { + // Flush it + flush(); + } } // Add a fatal error message to the queue array