Skip to content

Commit 96f704d

Browse files
author
Andrew Dolgov
committed
af_redditimgur: absolutize links before processing them
1 parent 5c70d26 commit 96f704d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/af_redditimgur/init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ private function inline_stuff(array &$article, DOMDocument &$doc, DOMXpath $xpat
397397
$entries = $xpath->query('//a[@href]');
398398

399399
foreach ($entries as $entry) {
400-
$entry_href = $entry->getAttribute("href");
400+
$entry_href = UrlHelper::rewrite_relative($article["link"], $entry->getAttribute("href"), "a");
401401

402402
$matches = [];
403403

0 commit comments

Comments
 (0)