mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
Fix issue processwire/processwire-issues#34
This commit is contained in:
@@ -171,6 +171,9 @@ class Notices extends WireArray {
|
||||
protected function addLog($item) {
|
||||
/** @var Notice $item */
|
||||
$text = $item->text;
|
||||
if($item->flags & Notice::allowMarkup && strpos($text, '&') !== false) {
|
||||
$text = $this->wire('sanitizer')->unentities($text);
|
||||
}
|
||||
if($this->wire('config')->debug && $item->class) $text .= " ($item->class)";
|
||||
$this->wire('log')->save($item->getName(), $text);
|
||||
}
|
||||
|
Reference in New Issue
Block a user