Skip to content

Conversation

thet
Copy link
Member

@thet thet commented Jun 22, 2020

core/utils rebaseURL: Do not rebase if the base URL isn't absolute or doesn't start with an URL scheme.

Note: the method _rebaseHTML_via_HTMLParser is unused.
I will remove this method and lib/htmlparser in #731

@thet thet requested a review from pilz June 22, 2020 13:39
if (
base.indexOf("://") !== -1 ||
base[0] === "/"
) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mainly for performance reasons - if there is no correct base url there is no need to parse the HTML tree

@pilz pilz merged commit 9862429 into master Jun 22, 2020
@pilz pilz deleted the thet-fix-rebaseurl branch June 22, 2020 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants