New submission from Pocas <pocas.cy...@gmail.com>:
If http:@localhost url is entered as an argument value of the urlpasre() function, the parser cannot parse it properly. Since http:@localhost is a valid URL, the character after the @ character must be parsed as a hostname. Python 3.9.10 (main, Jan 15 2022, 11:48:04) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from urllib.parse import urlparse >>> print(urlparse('http:@localhost')) ParseResult(scheme='http', netloc='', path='@localhost', params='', query='', fragment='') >>> ---------- messages: 414132 nosy: P0cas priority: normal severity: normal status: open title: Improper Input Validation in urlparse type: performance versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46870> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com