1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:45:55 +00:00

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

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