1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 01:34:31 +02:00
This commit is contained in:
Ryan Cramer
2019-12-27 13:35:00 -05:00
parent 9a9bdb464a
commit 4bcb824e9b

View File

@@ -288,7 +288,7 @@ class Notices extends WireArray {
protected function addLog($item) {
/** @var Notice $item */
$text = $item->text;
if($item->flags & Notice::allowMarkup && strpos($text, '&') !== false) {
if(strpos($text, '&') !== false) {
$text = $this->wire('sanitizer')->unentities($text);
}
if($this->wire('config')->debug && $item->class) $text .= " ($item->class)";