Re: [PHP] Do you trim() usernames and passwords?

2010-12-28 Thread Govinda
... And yes, I'm the OCD geek with such passwords. Dotan, that is great! You made a dry topic hilarious! (on top of the practical points you make.) Thanks! Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Do you trim() usernames and passwords?

2010-12-28 Thread Dotan Cohen
On Tue, Dec 28, 2010 at 17:13, Paul M Foster wrote: > If users want to embed spaces in their passwords, well and good. But at > the beginning or end? No. Trim them. As mentioned elsewhere, I suspect > this is mostly because of copying and pasting. > A leading space in a password is a terrific def

Re: [PHP] Do you trim() usernames and passwords?

2010-12-28 Thread Paul M Foster
On Tue, Dec 28, 2010 at 02:49:59PM +0200, Dotan Cohen wrote: > I seem to have an issue with users who copy-paste their usernames and > passwords coping and pasting leading and trailing space characters. > The obvious fix was to trim() the values that I receive, but I worry > how that would affect

Re: [PHP] Do you trim() usernames and passwords?

2010-12-28 Thread Dotan Cohen
On Tue, Dec 28, 2010 at 15:12, Ashley Sheridan wrote: > The copy-paste thing I've noticed only really seems to happen on Windows, > particularly with Outlook. The thing I always tell people if > I'm emailing people a password is that they should type it out rather than > copy paste to avoid the

Re: [PHP] Do you trim() usernames and passwords?

2010-12-28 Thread Ashley Sheridan
On Tue, 2010-12-28 at 14:49 +0200, Dotan Cohen wrote: > I seem to have an issue with users who copy-paste their usernames and > passwords coping and pasting leading and trailing space characters. > The obvious fix was to trim() the values that I receive, but I worry > how that would affect users w

[PHP] Do you trim() usernames and passwords?

2010-12-28 Thread Dotan Cohen
I seem to have an issue with users who copy-paste their usernames and passwords coping and pasting leading and trailing space characters. The obvious fix was to trim() the values that I receive, but I worry how that would affect users who use a space at the beginning or end of their password. Of co