We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 422886d commit 0c381caCopy full SHA for 0c381ca
src/templates/EventLog/View.phtml
@@ -49,8 +49,10 @@ $tpl_metadata_j = @json_decode( $object_metadata );
49
$tpl_metadata = (
50
is_null( $object_metadata ) ? '<em>(null)</em>' : (
51
json_last_error() === JSON_ERROR_NONE ? (
52
- '<pre><code class="wrap">' .
53
- json_encode( $tpl_metadata_j, JSON_PRETTY_PRINT ) .
+ '<pre><code class="wrap">' . filter_var(
+ json_encode( $tpl_metadata_j, JSON_PRETTY_PRINT ),
54
+ FILTER_SANITIZE_FULL_SPECIAL_CHARS
55
+ ) .
56
'</code></pre>'
57
) : (
58
'<textarea rows="10" readonly="readonly">' . filter_var(
0 commit comments