You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
URL validation arbitrarily supports FTP, but not other protocols #55
A URL can have any of an arbitrary number of protocols, but only HTTP, HTTPS and FTP are supported. If we have to arbitrarily restrict which protocols are allowed, we should at least follow the principle of least surprise and only allow HTTP(S). FTP is a weird addition.
Alternatively, supported protocols could be supplied.
Activity
kvesteri commentedon May 18, 2017
Fully agree on all your points. The best way would be if user could set which schemes are allowed.
sireliah commentedon Nov 1, 2019
Hi! I second that. The list of possibly useful schemes is provided by IANA: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
I think we can safely skip the historical ones, however some are nice-to-haves:
etc.
Let's discuss if this is feasible to include larger amount of schemes from document I posted.
nandgator commentedon Mar 14, 2023
related #40 #55
maint: improves `url` module