#20264: URLValidator should allow underscores in local hostname
------------------------------+--------------------------------------
     Reporter:  arthurdebert  |                    Owner:  nobody
         Type:  Bug           |                   Status:  new
    Component:  Core (Other)  |                  Version:  master
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  1             |                    UI/UX:  0
------------------------------+--------------------------------------
Changes (by halayli):

 * status:  closed => new
 * has_patch:  1 => 0
 * resolution:  invalid =>


Comment:

 Since all major browsers support underscores, and DNS allows underscore
 domains, it's bound that when URLValidator is used to validate a user's
 input it will fail unexpectedly from the user's perspective.

 Strictly abiding by the RFC with complete disregard to pragmatism makes no
 sense. The least this highly opinionated class can offer is a strict flag.

--
Ticket URL: <https://code.djangoproject.com/ticket/20264#comment:9>
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/070.4ce8bec6dd60755b6b9820ac3772b065%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to