]> git.wh0rd.org - tt-rss.git/commitdiff
htmLawed: tweak allowed attributes (2)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 30 Oct 2012 12:34:40 +0000 (16:34 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 30 Oct 2012 12:34:40 +0000 (16:34 +0400)
include/functions.php

index 35fcbc45a284bbfa2065fb1f5a2ebe54ecdfc9d3..2695b1cb94fd74e19b2722f2da5d1c5d86519bb8 100644 (file)
 
                $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)) {