From: Andrew Dolgov Date: Fri, 11 Oct 2013 09:41:30 +0000 (+0400) Subject: af_redditimgur: add workaround for imgur switching to protocol-less links for images X-Git-Tag: 1.11~41 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e44ea7626849bbce46c2b6dfb2accf0eb97fc718;p=tt-rss.git af_redditimgur: add workaround for imgur switching to protocol-less links for images --- diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 2e466f16..e81d908e 100644 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -62,7 +62,7 @@ class Af_RedditImgur extends Plugin { $aentries = $axpath->query('(//img[@src])'); foreach ($aentries as $aentry) { - if (preg_match("/^http:\/\/i.imgur.com\/$token\./", $aentry->getAttribute("src"))) { + if (preg_match("/\/\/i.imgur.com\/$token\./", $aentry->getAttribute("src"))) { $img = $doc->createElement('img'); $img->setAttribute("src", $aentry->getAttribute("src"));