in django/core/validators.py
{{{
def __call__(self, value):
# Check first if the scheme is valid
scheme = value.split('://')[0].lower()
if scheme not in self.schemes:
raise ValidationError(self.message, code=self.code)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31548>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Yash Saini
* status: new => assigned
* component: Uncategorized => Core (Other)
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/31548#comment:1>
--
Ticket URL: <https://code.djangoproject.com/ticket/31548#comment:2>
* has_patch: 0 => 1
Comment:
https://github.com/django/django/pull/12877 PR
--
Ticket URL: <https://code.djangoproject.com/ticket/31548#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31548#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"ccb1cfb64e919e163c51995ed99bff3c92d7d006" ccb1cfb]:
{{{
#!CommitTicketReference repository=""
revision="ccb1cfb64e919e163c51995ed99bff3c92d7d006"
Fixed #31548 -- Fixed URLValidator crash on non-strings.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31548#comment:5>