mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Allow chevrons in HTML filter (fixes #2007)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user