Skip to content

Commit

Permalink
[MERGE] Merge branch '1.2' into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Nov 23, 2015
2 parents b36c180 + ca8fc4e commit b7033d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function handle($typoScriptPath, \Exception $exception, $referenceCode
{
$messageArray = array(
'header' => 'An exception was thrown while Neos tried to render your page',
'content' => $exception->getMessage(),
'content' => htmlspecialchars($exception->getMessage()),
'stacktrace' => $this->formatTypoScriptPath($typoScriptPath),
'referenceCode' => $this->formatErrorCodeMessage($referenceCode)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ protected function handle($typoScriptPath, \Exception $exception, $referenceCode
return sprintf(
'Exception while rendering %s: %s (%s)',
$this->formatScriptPath($typoScriptPath, "\n\t", false),
$exception->getMessage(),
strip_tags($exception->getMessage()),
$referenceCode
);
} else {
return sprintf(
'Exception while rendering %s: %s',
$this->formatScriptPath($typoScriptPath, "\n\t", false),
$exception->getMessage()
strip_tags($exception->getMessage())
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ protected function handle($typoScriptPath, \Exception $exception, $referenceCode
return sprintf(
'<!-- Exception while rendering %s: %s (%s) -->',
$this->formatScriptPath($typoScriptPath, ''),
$exception->getMessage(),
htmlspecialchars($exception->getMessage()),
$referenceCode
);
} else {
return sprintf(
'<!-- Exception while rendering %s: %s -->',
$this->formatScriptPath($typoScriptPath, ''),
$exception->getMessage()
htmlspecialchars($exception->getMessage())
);
}
}
Expand Down

0 comments on commit b7033d2

Please sign in to comment.