Post Reply  Post Thread 
spaces entering users/domains
Author Message
gnuorder



Posts: 1
Group: Registered
Joined: Aug 2007
Status: Offline
Reputation: 0
Post: #1
spaces entering users/domains

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.

This post was last modified: 02-21-2008 09:52 AM by gnuorder.

02-21-2008 09:48 AM
Find all posts by this user Quote this message in a reply
joximu
Moderator
*****


Posts: 3,539
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #2
RE: spaces entering users/domains

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


2008-03-16 ispCP RC4 released!!!
02-21-2008 10:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cube
Documentation Team
***
Docu Team

Posts: 663
Group: Docu Team
Joined: Apr 2007
Status: Offline
Reputation: 8
Post: #3
RE: spaces entering users/domains

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.

02-21-2008 11:06 AM
Find all posts by this user Quote this message in a reply
joximu
Moderator
*****


Posts: 3,539
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #4
RE: spaces entering users/domains

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.


2008-03-16 ispCP RC4 released!!!
02-21-2008 07:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS
The Project's Fire Worker
******


Posts: 684
Group: Super Moderators
Joined: Oct 2006
Status: Offline
Reputation: 18
Post: #5
RE: spaces entering users/domains

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.

02-21-2008 07:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu
Moderator
*****


Posts: 3,539
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #6
RE: spaces entering users/domains

ok


2008-03-16 ispCP RC4 released!!!
02-21-2008 07:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

| All rights reserved : isp-control.net |