diff options
author | Andrew Dolgov <[email protected]> | 2022-07-13 07:51:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-07-13 07:51:09 +0300 |
commit | 96f704d157fcf20da130f37a31fbffd62a8a9892 (patch) | |
tree | 9f5d8615afd48715185630cdb32b6348ac3bbf1a /plugins/af_redditimgur | |
parent | 5c70d26b7ea8c2ac8d65e1c96e8805f73f433652 (diff) |
af_redditimgur: absolutize links before processing them
Diffstat (limited to 'plugins/af_redditimgur')
-rwxr-xr-x | plugins/af_redditimgur/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index f2a04ce24..33577d3b6 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -397,7 +397,7 @@ class Af_RedditImgur extends Plugin { $entries = $xpath->query('//a[@href]'); foreach ($entries as $entry) { - $entry_href = $entry->getAttribute("href"); + $entry_href = UrlHelper::rewrite_relative($article["link"], $entry->getAttribute("href"), "a"); $matches = []; |