From: Evan Prodromou Date: Fri, 17 Dec 2010 23:56:17 +0000 (-0500) Subject: Two bug fixes in activityimporter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1d6091cad20c0d5a7a31263032431ac13854a5b8;p=quix0rs-gnu-social.git Two bug fixes in activityimporter --- diff --git a/lib/activityimporter.php b/lib/activityimporter.php index 28c371e4dc..4a76781328 100644 --- a/lib/activityimporter.php +++ b/lib/activityimporter.php @@ -189,6 +189,8 @@ class ActivityImporter extends QueueHandler " it's got a different author %s."), $sourceUri, $uri)); } + } else { + throw new ClientException("Not overwriting author info for non-trusted user."); } } @@ -338,8 +340,11 @@ class ActivityImporter extends QueueHandler function purify($content) { + require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php'; + $config = array('safe' => 1, 'deny_attribute' => 'id,style,on*'); + return htmLawed($content, $config); } }