mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 00:06:55 +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) {
|
protected function addLog($item) {
|
||||||
/** @var Notice $item */
|
/** @var Notice $item */
|
||||||
$text = $item->text;
|
$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)";
|
if($this->wire('config')->debug && $item->class) $text .= " ($item->class)";
|
||||||
$this->wire('log')->save($item->getName(), $text);
|
$this->wire('log')->save($item->getName(), $text);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user