summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index 48111e409..56361472e 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);