Entering `example.com` in a URLField will give `http://example.com` as
cleaned data.
Ref:
https://github.com/django/django/blame/main/django/forms/fields.py#L772-L774
I think URLField should assume the safe option `https`.
I've notified the security team, and they didn't see this as a security
issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/34380>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Coen van der Kamp):
I've opened a pull request. And am happy to adjust if needed.
https://github.com/django/django/pull/16614
--
Ticket URL: <https://code.djangoproject.com/ticket/34380#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34380#comment:2>