Current time: 12-23-2024, 01:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
spaces entering users/domains
Author Message
gnuorder Offline


Posts: 3
Joined: Aug 2007
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 Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
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.
02-21-2008 10:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
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 Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
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.
02-21-2008 07:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
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 Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: spaces entering users/domains
ok
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 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)