From 248c5a6ab1a3817d32b205c4a8a3351f8e9574d9 Mon Sep 17 00:00:00 2001 From: aliz27 Date: Thu, 14 May 2015 11:52:44 +0200 Subject: [PATCH] Allow links to m.imgur.com pages --- plugins/af_redditimgur/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.5