mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 11:48:55 +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))
|
if (!is_bool($value) && !is_array($value))
|
||||||
{
|
{
|
||||||
$value = self::$htmlPurifierInstance->purify($value);
|
$value = self::$htmlPurifierInstance->purify($value);
|
||||||
}
|
|
||||||
|
|
||||||
// Allow some special chars
|
// Allow some special chars
|
||||||
if (!is_array($value))
|
// 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);
|
||||||
|
$value = str_replace('<', '<', $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user