> On 21 Jul 2019, at 19:03, Steven D'Aprano <[email protected]> wrote:
> 
>> On Sun, Jul 21, 2019 at 08:48:49AM +0100, Barry Scott wrote:
>> 
>> I took at very quick look at bpo30500 and was struck by the comment 
>> that the code was working on a URL that had not been validated.
>> 
>> Validation of the URL would reject the URL before the parsing happens 
>> in this case. Was that the case?
> 
> Sorry, can you elaborate on that? How do you validate a URL without 
> attempting to parse it? You're surely not talking about looking it up in 
> a whitelist are you?

I was thinking about ensuring the the characters in the url are from the subset 
that is allowed. \n is not allowed for example. Yes agree you have a try to 
parse it.

Barry

> 
> 
> Thanks,
> 
> 
> 
> 
> -- 
> Steven
> _______________________________________________
> Python-ideas mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at 
> https://mail.python.org/archives/list/[email protected]/message/BTACAKW4W57NZNO72IRLCQHFYDX4YSX3/
> Code of Conduct: http://python.org/psf/codeofconduct/
> 
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/P2PZ6L56YW6AFXMSAFG4OHRLKZBO6DQB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to