From: aliz27 Date: Thu, 14 May 2015 09:27:09 +0000 (+0200) Subject: Sometimes imgur links has ?1 in the url X-Git-Tag: 16.3~326^2~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7adf95562d924445acfe575f15978e5258efd95f;p=tt-rss.git Sometimes imgur links has ?1 in the url --- diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index d885ff16..889e2bcd 100644 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -78,7 +78,7 @@ class Af_RedditImgur extends Plugin { } } - if (preg_match("/\.(jpg|jpeg|gif|png)$/i", $entry->getAttribute("href"))) { + if (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9])?$/i", $entry->getAttribute("href"))) { $img = $doc->createElement('img'); $img->setAttribute("src", $entry->getAttribute("href"));