diff options
author | fox <[email protected]> | 2017-10-02 15:52:17 +0000 |
---|---|---|
committer | Gogs <[email protected]> | 2017-10-02 15:52:17 +0000 |
commit | 3b8d9bc6ff65184a2ed471079d5880b956b4c0ed (patch) | |
tree | 84110b192e68a57ad152f84351071b5c6ad52435 /include/functions.php | |
parent | 0f0d6ca55945edca137ffb37a17856b93f8c88d8 (diff) | |
parent | 701c5a7ee47f1236ffb55a9ebb707c46da2c7b91 (diff) |
Merge branch 'relative_html_base' of wn/tt-rss into master
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
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; } |