mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Allow chevrons in HTML filter (fixes #2007)
This commit is contained in:
parent
a5c2157320
commit
e1967bd603
|
|
@ -229,12 +229,12 @@ class BaseController
|
|||
if (!is_bool($value) && !is_array($value))
|
||||
{
|
||||
$value = self::$htmlPurifierInstance->purify($value);
|
||||
}
|
||||
|
||||
// Allow some special chars
|
||||
if (!is_array($value))
|
||||
{
|
||||
// Allow some special chars
|
||||
// Maybe also possible through HTMLPurifier config (http://htmlpurifier.org/live/configdoc/plain.html)
|
||||
$value = str_replace('&', '&', $value);
|
||||
$value = str_replace('>', '>', $value);
|
||||
$value = str_replace('<', '<', $value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user