aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-16 17:32:15 -0800
committerFriendika <info@friendika.com>2011-02-16 17:32:15 -0800
commit527e050ecc1037973595fd5de12682cfa9e19d64 (patch)
tree3f7f40a0a149e098855fd736cf25a5c6af0e3d9d /include/items.php
parent9f1f9da89bb98d768b7a41b388e9c5c0d28ec946 (diff)
downloadvolse-hubzilla-527e050ecc1037973595fd5de12682cfa9e19d64.tar.gz
volse-hubzilla-527e050ecc1037973595fd5de12682cfa9e19d64.tar.bz2
volse-hubzilla-527e050ecc1037973595fd5de12682cfa9e19d64.zip
sanitise all incoming url's - also stop them from getting mangled by simplepie
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 153debd7d..0951adbae 100644
--- a/include/items.php
+++ b/include/items.php
@@ -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;