diff --git a/_admin.php b/_admin.php index 32d28ac..115b7a3 100644 --- a/_admin.php +++ b/_admin.php @@ -26,7 +26,7 @@ dcCore::app()->addBehavior('adminColumnsListsV2', function (ArrayObject $cols) { $cols['dcloglist'] = [ __('Log'), [ - 'date' => [true, __('Date')], + 'date' => [true, __('Date')], //'msg' => [true, __('Message')], 'blog' => [true, __('Blog')], 'table' => [true, __('Component')], diff --git a/inc/class.dc.log.list.php b/inc/class.dc.log.list.php index 542058d..0776af5 100644 --- a/inc/class.dc.log.list.php +++ b/inc/class.dc.log.list.php @@ -74,25 +74,25 @@ class dcLogList extends adminGenericListV2 'check' => '' . form::checkbox(['entries[]'], $this->rs->log_id, ['checked' => $checked]) . '', - 'date' => '' . + 'date' => '' . html::escapeHTML(dt::dt2str( __('%Y-%m-%d %H:%M'), $this->rs->log_dt )) . '', - 'msg' => '' . + 'msg' => '' . nl2br(html::escapeHTML($this->rs->log_msg)) . '', - 'blog' => '' . + 'blog' => '' . html::escapeHTML($this->rs->blog_id) . '', 'table' => '' . html::escapeHTML($this->rs->log_table) . '', - 'user' => '' . + 'user' => '' . html::escapeHTML($this->rs->getUserCN()) . '', - 'ip' => '' . + 'ip' => '' . html::escapeHTML($this->rs->log_ip) . '', ];