#18982: DateField.clean raises TypeError when passed NUL bytes. Should be
ValidationError.
----------------------------+--------------------
     Reporter:  gwahl@…     |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Forms       |    Version:  1.4
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  1
Easy pickings:  0           |      UI/UX:  0
----------------------------+--------------------
 When a DateField (or any BaseTemporalField) tries to clean a value with a
 NUL byte (like `'a\x00b'`), the call to `strptime()` raises an uncaught
 TypeError. It should raise a ValidationError instead, because `'a\x00b'`
 is not a valid date.

 I have a patch for this, pull request to come.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18982>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to