Allow links to m.imgur.com pages

This commit is contained in:
aliz27 2015-05-14 11:52:44 +02:00
parent 7adf95562d
commit 248c5a6ab1
1 changed files with 1 additions and 1 deletions

View 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];