New submission from rushter <[email protected]>:
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.
----------
messages: 394243
nosy: rushter
priority: normal
severity: normal
status: open
title: urllib.parse.urljoin behaves differently in Python 3.9.5
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44224>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com