diff options
author | Andrew Dolgov <[email protected]> | 2013-03-15 11:10:12 -0700 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-15 11:10:12 -0700 |
commit | 8c4f63fa9a8c274cdd800a18c58a199aa7aba148 (patch) | |
tree | 10f22ac7bc775cc71399f8a3e08593358a96bdeb | |
parent | 9803a08886688bf3af7e986d3843625db4c90de5 (diff) | |
parent | 822cbf2a87ab2eaaa458ef1849d6f27d752ca9f8 (diff) |
Merge pull request #49 from Joschasa/master
Let htmLawed keep width+height for images
-rw-r--r-- | include/functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 54b840329..3927a5b69 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2552,7 +2552,8 @@ $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); |