]> git.wh0rd.org Git - tt-rss.git/commitdiff
Allow links to m.imgur.com pages
authoraliz27 <aliz@tamperd.net>
Thu, 14 May 2015 09:52:44 +0000 (11:52 +0200)
committeraliz27 <aliz@tamperd.net>
Thu, 14 May 2015 09:52:44 +0000 (11:52 +0200)
plugins/af_redditimgur/init.php

index 889e2bcd69aff00ce13e6a98c039e9b0efb1a54a..1bf91e88a83f95b0c5f24f9f0056ff16071357d1 100644 (file)
@@ -92,7 +92,7 @@ class Af_RedditImgur extends Plugin {
 
                                                        // links to imgur pages
                                                        $matches = array();
-                                                       if (preg_match("/^https?:\/\/imgur.com\/([^\.\/]+$)/", $entry->getAttribute("href"), $matches)) {
+                                                       if (preg_match("/^https?:\/\/(m\.)?imgur.com\/([^\.\/]+$)/", $entry->getAttribute("href"), $matches)) {
 
                                                                $token = $matches[1];