WebhostingNZ.com Posted December 5, 2015 Report Posted December 5, 2015 Hey, I think it would be handy if user input was run past php trim() before being processed, at least for the search if not everywhere. I've been trying to think how this could cause a problem but for the last few days I've come up with nothing, just many more times I've been caught out by having a space at the start of a copy/paste into the search box. The search in the top right corner will not find what you are looking for if you copy/paste and catch a space, or tab at the start or end of your copy trim() would also be handy on domain input for the cPanel module, that one caught me a few times when adding a few services. In the end I added it to my import script to do it first, but got caught out on a few I had to put in manually. This is again a small thing and it's simple to find/remove the space at the start but still a valid feature request as I would have thought it should have already been in. No flaming for silly feature requests.... I understand that my feature requests are trivial and there are much better things for devs to spend time on, but the only way to better the product is to point out places that I feel could be improved on. Thanks. activa 1 Quote
activa Posted December 5, 2015 Report Posted December 5, 2015 +1 for the search box . the space has made me crazy in copy/paste . Quote
Remitur Posted December 5, 2015 Report Posted December 5, 2015 trim() is a must on every user input, not only in search box. Imagine this scenario (reral life experience): - user change his password - he copies and paste it from a password generator, and for mistake gets a space too Result: he locks himself out from the system, because his password is not the one he think, but the one he think plus a space activa 1 Quote
Tyson Posted December 7, 2015 Report Posted December 7, 2015 Removing extra white space at the beginning or end of fields is a fine request. However, this is not something we would necessarily want to have for every input field. Quote
WebhostingNZ.com Posted December 7, 2015 Author Report Posted December 7, 2015 Hi Tyson, I do agree with you, while I understand Remitur's example, space is a valid char and should be able to be used in a password. Could we put this for at least the search box in the admin area? Quote
Tyson Posted December 8, 2015 Report Posted December 8, 2015 Could we put this for at least the search box in the admin area? I believe some searches already remove extra white-space. Which search type is problematic for you? Quote
WebhostingNZ.com Posted December 10, 2015 Author Report Posted December 10, 2015 I believe some searches already remove extra white-space. Which search type is problematic for you? Hi Tyson, Mostly the Client and Service search would be good to have a trim() on them. I've just checked both and both have problems with a whitespace at the start or end. Normally it's when a customer emails in their domain or mentions the account is under xxxx and you copy paste it into the search. Quote
Tyson Posted December 11, 2015 Report Posted December 11, 2015 I've added a task for us to remove the unnecessary white-space in searches as apart of CORE-1978. Quote
Remitur Posted December 12, 2015 Report Posted December 12, 2015 Hi Tyson, I do agree with you, while I understand Remitur's example, space is a valid char and should be able to be used in a password. I don't know how many systems allow space as valid character for a password... but putting a space at the end of a password may be a bad joke to a collegue, or a way to drive crazy someone we hate... Quote
Paul Posted December 14, 2015 Report Posted December 14, 2015 I don't know how many systems allow space as valid character for a password... but putting a space at the end of a password may be a bad joke to a collegue, or a way to drive crazy someone we hate... All my passwords are exactly 27 spaces followed by a tab. WebhostingNZ.com and Michael 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.