]> git.wh0rd.org Git - tt-rss.git/commitdiff
Let htmLawed keep width+height for images
authorAndré <joschasa@lavabit.com>
Fri, 15 Mar 2013 17:25:22 +0000 (18:25 +0100)
committerAndré <joschasa@lavabit.com>
Fri, 15 Mar 2013 17:25:22 +0000 (18:25 +0100)
include/functions.php

index 54b840329b14c91fedc5df05f47701eb75da16b2..3927a5b696f5c6b87931c5cca6bb93f7a06f4909 100644 (file)
                $res = trim($str); if (!$res) return '';
 
                $config = array('safe' => 1, 'deny_attribute' => 'style, width, height, class, id', 'comment' => 1, 'cdata' => 1, 'balance' => 0);
-               $res = htmLawed($res, $config);
+               $spec = 'img=width,height';
+               $res = htmLawed($res, $config, $spec);
 
                if (get_pref($link, "STRIP_IMAGES", $owner)) {
                        $res = preg_replace('/<img[^>]+>/is', '', $res);