From: Evan Prodromou Date: Mon, 22 Feb 2010 04:16:42 +0000 (-0500) Subject: was using HTMLPurifier::purify() as a static method, which it is not X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e39e6cdcc590a5330ab5a20a2519346bfc7965e0;p=quix0rs-gnu-social.git was using HTMLPurifier::purify() as a static method, which it is not --- diff --git a/plugins/OStatus/lib/salmonaction.php b/plugins/OStatus/lib/salmonaction.php index 273be588b6..08bfa332fa 100644 --- a/plugins/OStatus/lib/salmonaction.php +++ b/plugins/OStatus/lib/salmonaction.php @@ -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));