ispCP - Board - Support
spaces entering users/domains - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: Suggestions (/forum-2.html)
+--- Thread: spaces entering users/domains (/thread-2516.html)



spaces entering users/domains - gnuorder - 02-21-2008 09:48 AM

Someone might want to strip spaces from in front and behind domains when entering users so idiots like me dont spend hours trying to figure out why some domains work and others dont. I wasn't careful with my copy and paste and kept getting errors. Smile

Using RC2. Disregard if that is fixed. About to upgrade now.


RE: spaces entering users/domains - joximu - 02-21-2008 10:17 AM

a reseller should take care about things like this.
please test this in rc3 or the nightly build.


RE: spaces entering users/domains - Cube - 02-21-2008 11:06 AM

I just tested it with my logins on different sites. Most of them strip the spaces. Squirrel, Web-FTP and PMA also do it. But ispCP doesn't. So I think it should be implemented.


RE: spaces entering users/domains - joximu - 02-21-2008 07:20 PM

Ok, I can do this.

Most of the inputs are checked by a function and also are trimmed there - I'll check why this is not the case with the domain name.


RE: spaces entering users/domains - RatS - 02-21-2008 07:35 PM

I just added a trim() on login and the lost password. (Will be in my next commit.) Do not abuse check_input(). There are Inputs where whitespaces are wanted. However, you can modify rau3.php and some of the client input files, if you want to.


RE: spaces entering users/domains - joximu - 02-21-2008 07:41 PM

ok