From aa898a5894896f35fcf8a5c3c8ef00fefc8d3ce8 Mon Sep 17 00:00:00 2001 From: Christian Herberger Date: Fri, 16 Feb 2018 11:55:07 +0100 Subject: [PATCH] FIX: in production exception handler always send http status codes, not only if we are not in ajax --- Classes/ExceptionHandler/ProductionExceptionHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/ExceptionHandler/ProductionExceptionHandler.php b/Classes/ExceptionHandler/ProductionExceptionHandler.php index 2f67f764..edd14d64 100755 --- a/Classes/ExceptionHandler/ProductionExceptionHandler.php +++ b/Classes/ExceptionHandler/ProductionExceptionHandler.php @@ -22,11 +22,11 @@ class ProductionExceptionHandler extends Typo3ProductionExceptionHandler */ public function echoExceptionWeb($exception) { + $this->sendStatusHeaders($exception); + if (isset($GLOBALS['TYPO3_AJAX']) && $GLOBALS['TYPO3_AJAX'] === true) { echo $exception->getCode(); } else { - $this->sendStatusHeaders($exception); - $this->writeLogEntries($exception, self::CONTEXT_WEB); $messageObj = GeneralUtility::makeInstance(