#25635: URLValidator regex is not allowing '+' character in scheme and also
scheme
part is optional
--------------------------------+------------------------------------------
Reporter: | Owner: nobody
DheerendraRathor |
Type: Bug | Status: new
Component: Core (Other) | Version: 1.8
Severity: Normal | Keywords: urlvalidator, regexvalidator
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------
Quoting w3's url-spec
A complete URL consists of a naming scheme specifier followed by a string
whose format is a function of the naming scheme.
and
Within the URL of a object, the first element is the name of the scheme,
separated from the rest of the object by a colon. The rest of the URL
follows the colon in a format depending on the scheme.
So basically scheme should be present in URL syntax. Current scheme regex
is `^(?:[a-z0-9\.\-]*)://` which allows empty schemes.
Also schemes should allow alphanumeric characters with `-`, `.` and `+`
([https://tools.ietf.org/html/rfc1738#section-2.1 rfc1738]).
--
Ticket URL: <https://code.djangoproject.com/ticket/25635>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/059.a2a1959e1f49f98bb63cb4bcd9eb49b8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.