X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=include%2Ffunctions.php;h=56361472ee5f4cc9b280fc6a5fce02932c89d7bf;hb=910592b49a86273a30150bfdb67d9b49409e32f2;hp=48111e4095a3f97738c9431c51e70b7a2b59e491;hpb=2fc4d981d1c31a2b3d7bf1120d7f585064ad17ac;p=tt-rss.git diff --git a/include/functions.php b/include/functions.php index 48111e40..56361472 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2760,7 +2760,7 @@ } - function sanitize($str, $force_remove_images = false, $owner = false, $site_url = false, $highlight_words = false) { + function sanitize($str, $force_remove_images = false, $owner = false, $site_url = false, $highlight_words = false, $article_id = false) { if (!$owner) $owner = $_SESSION["uid"]; $res = trim($str); if (!$res) return ''; @@ -2846,7 +2846,7 @@ $disallowed_attributes = array('id', 'style', 'class'); foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_SANITIZE) as $plugin) { - $retval = $plugin->hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes); + $retval = $plugin->hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes, $article_id); if (is_array($retval)) { $doc = $retval[0]; $allowed_elements = $retval[1]; @@ -3183,7 +3183,7 @@ $line["content"] = sanitize($line["content"], sql_bool_to_bool($line['hide_images']), - $owner_uid, $line["site_url"]); + $owner_uid, $line["site_url"], false, $line["id"]); foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_RENDER_ARTICLE) as $p) { $line = $p->hook_render_article($line);