Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Tue Apr 07, 2009 6:15 pm Reply with quote

"A friend" found this out the hard way ROTFL

upon a fresh install and I assume on new user registrations if you accidentally hit the space bar before entering your user name it inserts in the database with the space intact, therefore costing you hours trying to figure out why you cant log in Embarassed

Can we use a trim function to make sure there is no whitespace anywhere, ever Razz
 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Tue Apr 07, 2009 7:41 pm Reply with quote

You should get this error when registering with a whitespace
Code:


There cannot be any spaces in the nickname< br /> There cannot be any spaces in the nickname< br />


Obviously the BR tags shouldn't be showing, but I'll take care of that.

You can try it at www.ravennuke.com

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
testy1







PostPosted: Tue Apr 07, 2009 9:18 pm Reply with quote

ok must be the admin page only then, If you create a new admin via the create first function it does it.

Could also change RNYA so that you only recieve that message if the space is in between alpha numerics i.e spaces at beginning and end would be removed via trim
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Wed Apr 08, 2009 6:42 am Reply with quote

Actually what I am seeing if you go to register a new user is that the javascript kicks in as soon as you type a space saying for instance: dog bo has already been registered, is blocked or contains invalid characters" This is through the normal (non-admin) registration screen. If you go to add the new user administratively then you get the There cannot be any spaces in the nickname message.

Incidentally, does anyone know why we don't allow spaces in the nickname?
 
View user's profile Send private message Visit poster's website
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Apr 08, 2009 8:20 am Reply with quote

The posts from members with spaces in the nick can´t be found if I remember correctly.

edit:Just found something about this:

http://www.ravenphpscripts.com/postt8138.html
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Apr 10, 2009 6:13 am Reply with quote

I have verified the code in setup.php and it is not applying the same criteria for valid admin as what is being checked upon login. We will get this fixed. Thanks for bringing this up.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©