]> git.wh0rd.org Git - tt-rss.git/commitdiff
sanitize: fix img attributes
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 31 Dec 2011 07:39:12 +0000 (11:39 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 31 Dec 2011 07:39:12 +0000 (11:39 +0400)
include/functions.php

index fa16bf8bffd2ea169db99e86d6f8ed0c2d54194f..8894f816209ab24fd69dc772329468dd300c99e6 100644 (file)
 
                        $config = HTMLPurifier_Config::createDefault();
 
-                       $allowed = "p,a[href],i,em,b,strong,code,pre,blockquote,br,img[src|alt|title,align,hspace],ul,ol,li,h1,h2,h3,h4,s,object[classid|type|id|name|width|height|codebase],param[name|value],table,tr,td";
+                       $allowed = "p,a[href],i,em,b,strong,code,pre,blockquote,br,img[src|alt|title|align|hspace],ul,ol,li,h1,h2,h3,h4,s,object[classid|type|id|name|width|height|codebase],param[name|value],table,tr,td";
 
                        $config->set('HTML.SafeObject', true);
                        @$config->set('HTML', 'Allowed', $allowed);