Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
FIX: in production exception handler always send http status codes, n…
Browse files Browse the repository at this point in the history
…ot only if we are not in ajax
  • Loading branch information
kabarakh committed Feb 16, 2018
1 parent b2b709f commit aa898a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ExceptionHandler/ProductionExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit aa898a5

Please sign in to comment.