Escape log messages
This commit is contained in:
parent
3ea2d3e0ed
commit
e7f10d846e
|
@ -25,6 +25,7 @@ function admin_log()
|
||||||
$entries = [];
|
$entries = [];
|
||||||
foreach ($log_entries as $entry) {
|
foreach ($log_entries as $entry) {
|
||||||
$data = $entry->toArray();
|
$data = $entry->toArray();
|
||||||
|
$data['message'] = nl2br(htmlspecialchars($data['message']));
|
||||||
$data['created_at'] = date_format($entry->created_at, 'd.m.Y H:i');
|
$data['created_at'] = date_format($entry->created_at, 'd.m.Y H:i');
|
||||||
$entries[] = $data;
|
$entries[] = $data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue