close
Skip to content

Fix setting the base url for etree.Resolver.resolve_string#198

Merged
scoder merged 1 commit intolxml:masterfrom
mvantellingen:feature/fix-resolver-base-url
Jul 18, 2016
Merged

Fix setting the base url for etree.Resolver.resolve_string#198
scoder merged 1 commit intolxml:masterfrom
mvantellingen:feature/fix-resolver-base-url

Conversation

@mvantellingen
Copy link
Copy Markdown
Contributor

See https://github.com/GNOME/libxml2/blob/master/parserInternals.c#L1549
We seem to get away with only setting the _filename so that relative
url's are resolved based on the value.

Fixes https://bugs.launchpad.net/lxml/+bug/1568167

See https://github.com/GNOME/libxml2/blob/master/parserInternals.c#L1549
We seem to get away with only setting the _filename so that relative
url's are resolved based on the value.

Fixes https://bugs.launchpad.net/lxml/+bug/1568167
@scoder
Copy link
Copy Markdown
Member

scoder commented Jul 18, 2016

Thanks!

@scoder scoder merged commit 989a253 into lxml:master Jul 18, 2016
@scoder
Copy link
Copy Markdown
Member

scoder commented Jul 18, 2016

A test would be nice, BTW.

@scoder
Copy link
Copy Markdown
Member

scoder commented Jul 18, 2016

The file path might need encoding in some cases. I pushed a fix here: 5da090b

@mvantellingen
Copy link
Copy Markdown
Contributor Author

Thanks, i'll add writing a unittest for this on my todo list :-)

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