]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add HTMLPurifier config
authorEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 04:07:46 +0000 (23:07 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 04:07:46 +0000 (23:07 -0500)
plugins/OStatus/lib/salmonaction.php

index 11c411c7dbb9f26239576cdadd8bfb1ae42e3802..8734223c6230ce03b727fe4d44881fa70af705fd 100644 (file)
@@ -173,7 +173,10 @@ class SalmonAction extends Action
 
         $html = $this->act->object->content;
 
-        $rendered = HTMLPurifier::purify($html);
+        $htmlConfig = HTMLPurifier_Config::createDefault();
+
+        $rendered = HTMLPurifier::purify($html, $htmlConfig);
+
         $content = html_entity_decode(strip_tags($rendered));
 
         $options = array('is_local' => Notice::REMOTE_OMB,