]> git.wh0rd.org Git - tt-rss.git/commitdiff
Sometimes imgur links has ?1 in the url
authoraliz27 <aliz@tamperd.net>
Thu, 14 May 2015 09:27:09 +0000 (11:27 +0200)
committeraliz27 <aliz@tamperd.net>
Thu, 14 May 2015 09:27:09 +0000 (11:27 +0200)
plugins/af_redditimgur/init.php

index d885ff16d0c20c81c16f5cf2a927701e8c00b52c..889e2bcd69aff00ce13e6a98c039e9b0efb1a54a 100644 (file)
@@ -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"));