[New-bugs-announce] [issue20761] os.path.join doesn't strip LF or CR

Tiberiu Dragulinescu report at bugs.python.org
Mon Feb 24 15:10:29 CET 2014


New submission from Tiberiu Dragulinescu:

>>>d="asdasd"+chr(10)
>>>print os.path.normpath(os.path.join('a/b',d,'d'))
a\b\asdasd
\d

LF or CR cannot be part of a URI (rfc1738)

----------
components: Windows
messages: 212099
nosy: ExtraVeral
priority: normal
severity: normal
status: open
title: os.path.join doesn't strip LF or CR
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list