Two bug fixes in activityimporter

This commit is contained in:
Evan Prodromou 2010-12-17 18:56:17 -05:00
parent 120802b807
commit 1d6091cad2

View File

@ -189,6 +189,8 @@ class ActivityImporter extends QueueHandler
" it's got a different author %s."), " it's got a different author %s."),
$sourceUri, $uri)); $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) function purify($content)
{ {
require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php';
$config = array('safe' => 1, $config = array('safe' => 1,
'deny_attribute' => 'id,style,on*'); 'deny_attribute' => 'id,style,on*');
return htmLawed($content, $config); return htmLawed($content, $config);
} }
} }