This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rushter
Recipients rushter
Date 2021-05-24.10:05:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621850710.44.0.0440015163726.issue44224@roundup.psfhosted.org>
In-reply-to
Content
Since Python 3.9.5, `urllib.parse.urljoin` now strips newlines from the destination URL.

I think this should be at least mentioned in the `/Misc/NEWS.d`.

Python 3.8.10:

>>> urllib.parse.urljoin('http://a.ru', '\nsome/location')
'http://a.ru/\nsome/location'


Python 3.9.5:

>>> urllib.parse.urljoin('http://a.ru', '\nsome/location')
'http://a.ru/some/location'


We had an extra check for newlines in our Python codebase and our test started to fail.
History
Date User Action Args
2021-05-24 10:05:10rushtersetrecipients: + rushter
2021-05-24 10:05:10rushtersetmessageid: <1621850710.44.0.0440015163726.issue44224@roundup.psfhosted.org>
2021-05-24 10:05:10rushterlinkissue44224 messages
2021-05-24 10:05:10rushtercreate