From: Andrew Dolgov Date: Tue, 30 Oct 2012 12:34:40 +0000 (+0400) Subject: htmLawed: tweak allowed attributes (2) X-Git-Tag: 1.6.1~33 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d9f3f57b0596813c060088c51aa59cc6fc25c661;p=tt-rss.git htmLawed: tweak allowed attributes (2) --- diff --git a/include/functions.php b/include/functions.php index 35fcbc45..2695b1cb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2593,7 +2593,7 @@ $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); if (get_pref($link, "STRIP_IMAGES", $owner)) {