Merge branch '4.4' into 5.0
* 4.4: Escape variable in Exception Template
This commit is contained in:
commit
244c347178
@ -20,15 +20,15 @@
|
|||||||
<?php if ($exception['trace']) { ?>
|
<?php if ($exception['trace']) { ?>
|
||||||
<pre class="stacktrace">
|
<pre class="stacktrace">
|
||||||
<?php
|
<?php
|
||||||
echo $exception['class'].":\n";
|
echo $this->escape($exception['class']).":\n";
|
||||||
if ($exception['message']) {
|
if ($exception['message']) {
|
||||||
echo $exception['message']."\n";
|
echo $this->escape($exception['message'])."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($exception['trace'] as $trace) {
|
foreach ($exception['trace'] as $trace) {
|
||||||
echo "\n ";
|
echo "\n ";
|
||||||
if ($trace['function']) {
|
if ($trace['function']) {
|
||||||
echo 'at '.$trace['class'].$trace['type'].$trace['function'].'('.(isset($trace['args']) ? $this->formatArgsAsText($trace['args']) : '').')';
|
echo $this->escape('at '.$trace['class'].$trace['type'].$trace['function']).'('.(isset($trace['args']) ? $this->formatArgsAsText($trace['args']) : '').')';
|
||||||
}
|
}
|
||||||
if ($trace['file'] && $trace['line']) {
|
if ($trace['file'] && $trace['line']) {
|
||||||
echo($trace['function'] ? "\n (" : 'at ').strtr(strip_tags($this->formatFile($trace['file'], $trace['line'])), [' at line '.$trace['line'] => '']).':'.$trace['line'].($trace['function'] ? ')' : '');
|
echo($trace['function'] ? "\n (" : 'at ').strtr(strip_tags($this->formatFile($trace['file'], $trace['line'])), [' at line '.$trace['line'] => '']).':'.$trace['line'].($trace['function'] ? ')' : '');
|
||||||
|
Reference in New Issue
Block a user