]> git.wh0rd.org Git - tt-rss.git/commit
Handle potentially-relative base element when getting favicon.
authorwn_ <invalid@email.com>
Sun, 1 Oct 2017 19:25:12 +0000 (14:25 -0500)
committerwn_ <invalid@email.com>
Sun, 1 Oct 2017 19:25:12 +0000 (14:25 -0500)
commit241f69e4db786daac259f1c7641006e1d2e28e2b
treed1b905565fc9efe5d5ca1ae3069a879f47ad8c86
parent0f0d6ca55945edca137ffb37a17856b93f8c88d8
Handle potentially-relative base element when getting favicon.

The base element's "href" attribute is not required to be absolute,
so rewrite relative to the site URL if it is relative.

See:
* https://www.w3.org/TR/html51/document-metadata.html#the-base-element
* https://html.spec.whatwg.org/multipage/semantics.html#the-base-element
include/functions.php