]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
was using HTMLPurifier::purify() as a static method, which it is not
authorEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 04:16:42 +0000 (23:16 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 04:16:42 +0000 (23:16 -0500)
plugins/OStatus/lib/salmonaction.php

index 273be588b6329f16ecf1a1c42a6c11c8f87c6d94..08bfa332fa1003d29b7698867fb6cb651e90316c 100644 (file)
@@ -173,9 +173,9 @@ class SalmonAction extends Action
 
         $html = $this->act->object->content;
 
-        $htmlConfig = HTMLPurifier_Config::createDefault();
+        $purifier = new HTMLPurifier();
 
-        $rendered = HTMLPurifier::purify($html, $htmlConfig);
+        $rendered = $purifier->purify($html);
 
         $content = html_entity_decode(strip_tags($rendered));