Escape log messages

This commit is contained in:
Igor Scheller 2019-04-29 23:59:37 +02:00 committed by msquare
parent 3ea2d3e0ed
commit e7f10d846e
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ function admin_log()
$entries = [];
foreach ($log_entries as $entry) {
$data = $entry->toArray();
$data['message'] = nl2br(htmlspecialchars($data['message']));
$data['created_at'] = date_format($entry->created_at, 'd.m.Y H:i');
$entries[] = $data;
}