mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 05:56:15 +02: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))
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user