On Jul 4, 4:52 pm, Jacob Kaplan-Moss <ja...@jacobian.org> wrote: > On Mon, Jul 4, 2011 at 12:13 AM, Ryan <rfug...@gmail.com> wrote: > > Umm... How about now? > > Sorry, but this isn't going to happen. I left more information on the > ticket:https://code.djangoproject.com/ticket/6362#comment:43.
It sounds like you've never been bitten by strip bugs. Here's the ones I've been through: 1. User inputs "foo " in some kind of identifier that is matched verbatim when doing a DB query. User can now not login/find his stuff/ whatever. Or the error is catched by a check regexp and instead the poor sod cannot create a user and don't understand why as the space is invisible. EmailField and date/time fields used to have this bug: https://code.djangoproject.com/log/django/trunk/django/forms/fields.py 2. User clears a field by selecting the text and hitting space bar (why you would do that is beyond me, but some people do it). Now the field is submitted as " " instead of "" which to Django is not blank. Code that kicks in if the field is not blank now kicks in even though there's no value. Something breaks. 3. User inputs "Foo " as first name, everything looks fine in HTML because HTML strips extraneous spaces, but once you send the person a text confirmation, you send it to "Dear Foo ," instead of "Dear Foo,". The truth is that almost all char form fields intended for humans should be stripped (do you think this is incorrect?), and it's easy to forget to do it. Ole -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.