diff options
author | Andrew Dolgov <[email protected]> | 2017-10-06 09:45:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-10-06 09:45:28 +0300 |
commit | 916c1e9b16d39a7d5a9c5f5167333dd330cc6a7e (patch) | |
tree | 933a50fc3b82a419f2d73f9a63c3dc6427315284 | |
parent | 51b521c3269d3a1644b3f3a3adcd19ddc923acbb (diff) | |
parent | 3b8d9bc6ff65184a2ed471079d5880b956b4c0ed (diff) |
Merge branch 'master' of git.tt-rss.org:git/tt-rss
-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; } |