[issue22118] urljoin fails with messy relative URLs

Demian Brecht report at bugs.python.org
Tue Aug 5 20:58:23 CEST 2014


Demian Brecht added the comment:

I've only had a couple minutes to look into this so far, but the bug does indeed seem to be valid across all versions. In fact, the line "# XXX The stuff below is bogus in various ways..." in urljoin tipped me off to something potentially being askew ;)

Unless the OP wants to provide a patch, I was going to take a look at possibly updating urljoin (at least the part below that line) to follow http://tools.ietf.org/html/rfc3986#section-5.2 a little more closely.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22118>
_______________________________________


More information about the Python-bugs-list mailing list