1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 05:41:28 +00:00

htmLawed: tweak allowed attributes (2)

This commit is contained in:
Andrew Dolgov
2012-10-30 16:34:40 +04:00
parent 3795b73034
commit d9f3f57b05

View File

@@ -2593,7 +2593,7 @@
$res = trim($str); if (!$res) return ''; $res = trim($str); if (!$res) return '';
$config = array('safe' => 1, 'deny_attribute' => 'style, width, height', 'comment' => 1, 'cdata' => 1); $config = array('safe' => 1, 'deny_attribute' => 'style, width, height, class, id', 'comment' => 1, 'cdata' => 1);
$res = htmLawed($res, $config); $res = htmLawed($res, $config);
if (get_pref($link, "STRIP_IMAGES", $owner)) { if (get_pref($link, "STRIP_IMAGES", $owner)) {