From 87646621385686d6127f61a30ff71c5899d6a7a7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 3 Jan 2021 10:55:57 +0300 Subject: [PATCH] af_redditimgur: also blacklist in-content links --- plugins/af_redditimgur/init.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 7a6f4b74d..8d34bb556 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -110,6 +110,9 @@ class Af_RedditImgur extends Plugin { foreach ($entries as $entry) { if ($entry->hasAttribute("href") && strpos($entry->getAttribute("href"), "reddit.com") === false) { + if ($this->is_blacklisted($entry->getAttribute("href"))) + continue; + Debug::log("processing href: " . $entry->getAttribute("href"), Debug::$LOG_VERBOSE); $matches = array();