#6362: Remove blank spaces with strip when validating the data
---------------------------------------------+------------------------------
Reporter: marinho | Owner: nobody
Status: new | Milestone:
Component: Forms | Version: SVN
Resolution: | Keywords: blank space strip
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by ishirav):
Two and a half years for such a small change? C'mon guys, this really
needs to be fixed.
Here's another use case that would benefit from this: you send an email to
a user with his initial password, or an application license key. When the
user copies the value from their email into a form field on your site,
very often an extra blank slips in and the form validation fails. This is
especially problematic in password fields, since the user can't even see
that there's an extra blank in there. It happened to me several times,
because when you select-by-double-clicking a word in Firefox or
Thunderbird, the blank after the word is included in the selection (try
it!)
--
Ticket URL: <
http://code.djangoproject.com/ticket/6362#comment:35>