From: Andrew Dolgov Date: Mon, 6 Jul 2015 20:59:10 +0000 (+0300) Subject: af_redditimgur: do not embed content of reddit links X-Git-Tag: 16.3~246 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=99bb8b3bbbca9cc7b3079c1ff0ebb9388ca62328;p=tt-rss.git af_redditimgur: do not embed content of reddit links --- diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index fe6d3240..d42f4c60 100644 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -259,7 +259,8 @@ class Af_RedditImgur extends Plugin { $content_link = $xpath->query("(//a[contains(., '[link]')])")->item(0); - if ($content_link) { + if ($content_link && strpos($content_link->getAttribute("href"), "reddit.com") === FALSE) { + $tmp = fetch_file_contents($content_link->getAttribute("href")); if ($tmp) {