// - debug mode is enabled
// - within ACP and a SystemException was thrown
if (WCF::debugModeIsEnabled(false) || WCF::debugModeIsEnabled() && self::INTERNAL_ERROR) {
- $responseData['stacktrace'] = nl2br($stacktrace);
+ $responseData['stacktrace'] = nl2br($stacktrace, false);
}
$statusHeader = '';
$result .= $this->compileVariableTag($value, false);
}
catch (SystemException $e) {
- throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo), 0, nl2br($e));
+ throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo), 0, nl2br($e, false));
}
if ($leftParenthesis < $rightParenthesis) {