mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Set HTMLPurifier cache path (fixes #1497)
This commit is contained in:
parent
a0e5f45da3
commit
26979a4321
@ -203,6 +203,7 @@ class BaseController
|
||||
if (self::$htmlPurifierInstance == null)
|
||||
{
|
||||
$htmlPurifierConfig = \HTMLPurifier_Config::createDefault();
|
||||
$htmlPurifierConfig->set('Cache.SerializerPath', GROCY_DATAPATH . '/viewcache');
|
||||
$htmlPurifierConfig->set('HTML.Allowed', 'div,b,strong,i,em,u,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src],table[border|width|style],tbody,tr,td,th,blockquote');
|
||||
$htmlPurifierConfig->set('CSS.AllowedProperties', 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align');
|
||||
$htmlPurifierConfig->set('URI.AllowedSchemes', ['data' => true]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user