summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2017-10-02 15:52:17 +0000
committerGogs <[email protected]>2017-10-02 15:52:17 +0000
commit3b8d9bc6ff65184a2ed471079d5880b956b4c0ed (patch)
tree84110b192e68a57ad152f84351071b5c6ad52435
parent0f0d6ca55945edca137ffb37a17856b93f8c88d8 (diff)
parent701c5a7ee47f1236ffb55a9ebb707c46da2c7b91 (diff)
Merge branch 'relative_html_base' of wn/tt-rss into master
-rw-r--r--include/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 8ea8719ca..203454747 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -575,9 +575,9 @@
$doc->loadHTML($html);
$xpath = new DOMXPath($doc);
- $base = $xpath->query('/html/head/base');
+ $base = $xpath->query('/html/head/base[@href]');
foreach ($base as $b) {
- $url = $b->getAttribute("href");
+ $url = rewrite_relative_url($url, $b->getAttribute("href"));
break;
}