Message349917
From RFC-1738:
hostname = *[ domainlabel "." ] toplabel
domainlabel = alphadigit | alphadigit *[ alphadigit | "-" ] alphadigit
toplabel = alpha | alpha *[ alphadigit | "-" ] alphadigit
alphadigit = alpha | digit
However:
py> urlparse('https://foo\\bar/baz')
ParseResult(scheme='https', netloc='foo\\bar', path='/baz', params='', query='', fragment='')
The hostname's BNF doesn't allow for a backslash ('\\') character, so I'd expect urlparse to raise a ValueError for this "URL". |
|
Date |
User |
Action |
Args |
2019-08-18 06:57:48 | Ilya Konstantinov | set | recipients:
+ Ilya Konstantinov, orsenthil, christian.heimes, steven.daprano, martin.panter, xtreak, nsonaniya2010 |
2019-08-18 06:57:48 | Ilya Konstantinov | set | messageid: <1566111468.66.0.440908406399.issue35748@roundup.psfhosted.org> |
2019-08-18 06:57:48 | Ilya Konstantinov | link | issue35748 messages |
2019-08-18 06:57:48 | Ilya Konstantinov | create | |
|