[ErrorHandler] Escape JSON encoded log context
This commit is contained in:
parent
50f37f0ccc
commit
5572a68ed7
@ -35,7 +35,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<?= $this->formatLogMessage($log['message'], $log['context']); ?>
|
<?= $this->formatLogMessage($log['message'], $log['context']); ?>
|
||||||
<?php if ($log['context']) { ?>
|
<?php if ($log['context']) { ?>
|
||||||
<pre class="text-muted prewrap m-t-5"><?= json_encode($log['context'], \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES); ?></pre>
|
<pre class="text-muted prewrap m-t-5"><?= $this->escape(json_encode($log['context'], \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES)); ?></pre>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Reference in New Issue
Block a user