sanitise all incoming url's - also stop them from getting mangled by simplepie
This commit is contained in:
parent
9f1f9da89b
commit
527e050ecc
5 changed files with 32 additions and 18 deletions
|
@ -350,7 +350,7 @@ function get_atom_elements($feed,$item) {
|
|||
'[youtube]$1[/youtube]', $res['body']);
|
||||
|
||||
$res['body'] = oembed_html2bbcode($res['body']);
|
||||
|
||||
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$config->set('Cache.DefinitionImpl', null);
|
||||
|
||||
|
@ -363,7 +363,7 @@ function get_atom_elements($feed,$item) {
|
|||
|
||||
$res['body'] = html2bbcode($res['body']);
|
||||
}
|
||||
|
||||
|
||||
$allow = $item->get_item_tags(NAMESPACE_DFRN,'comment-allow');
|
||||
if($allow && $allow[0]['data'] == 1)
|
||||
$res['last-child'] = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue