From: aliz27 Date: Thu, 14 May 2015 09:52:44 +0000 (+0200) Subject: Allow links to m.imgur.com pages X-Git-Tag: 16.3~326^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=248c5a6ab1a3817d32b205c4a8a3351f8e9574d9;p=tt-rss.git Allow links to m.imgur.com pages --- diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 889e2bcd..1bf91e88 100644 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -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];