allow |align|style|width|height for img

This commit is contained in:
Klaus Leithoff 2010-05-03 09:00:55 +00:00
parent c3c5d1103f
commit 2cb616909c

View File

@ -1261,7 +1261,7 @@ class html
'tr[class|style|align|bgcolor|align|valign],'. 'tr[class|style|align|bgcolor|align|valign],'.
'td[class|colspan|rowspan|width|style|align|bgcolor|align|valign|nowrap],'. 'td[class|colspan|rowspan|width|style|align|bgcolor|align|valign|nowrap],'.
'th[class|colspan|rowspan|width|style|align|bgcolor|align|valign|nowrap],'. 'th[class|colspan|rowspan|width|style|align|bgcolor|align|valign|nowrap],'.
'a[href|target|name|title],img[src|alt|title]'); 'a[href|target|name|title],img[src|alt|title|align|style|width|height]');
$config->set('Cache.SerializerPath', $GLOBALS['egw_info']['server']['temp_dir']); $config->set('Cache.SerializerPath', $GLOBALS['egw_info']['server']['temp_dir']);
} }
$purifier = new HTMLPurifier($config); $purifier = new HTMLPurifier($config);