Browse Source

Also match images with query string (size, tokens, etc).

koffieanon 6 months ago
parent
commit
3a3c74dfa4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/af_redditimgur/init.php

+ 1 - 1
plugins/af_redditimgur/init.php

@@ -264,7 +264,7 @@ class Af_RedditImgur extends Plugin {
 					$found = true;
 				}
 
-				if (!$found && (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9][0-9]*)?$/i", $entry->getAttribute("href")) ||
+				if (!$found && (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9][0-9]*)?[$\?]/i", $entry->getAttribute("href")) ||
 					mb_strpos($entry->getAttribute("href"), "i.reddituploads.com") !== FALSE ||
 					mb_strpos($this->get_content_type($entry->getAttribute("href")), "image/") !== FALSE)) {