mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-31 08:11:29 +00:00
af_redditimgur: better handling of image urls with multiple-character numeric suffixes
This commit is contained in:
@@ -84,9 +84,8 @@ class Af_RedditImgur extends Plugin {
|
||||
$found = true;
|
||||
}
|
||||
|
||||
if (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9])?$/i", $entry->getAttribute("href"))) {
|
||||
|
||||
$img = $doc->createElement('img');
|
||||
if (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9][0-9]*)?$/i", $entry->getAttribute("href"))) {
|
||||
$img = $doc->createElement('img');
|
||||
$img->setAttribute("src", $entry->getAttribute("href"));
|
||||
|
||||
$br = $doc->createElement('br');
|
||||
|
||||
Reference in New Issue
Block a user