[pLog-svn] r6259 - plog/branches/lifetype-1.2/class/data/validator
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri Mar 21 16:03:16 EDT 2008
Author: jondaley
Date: 2008-03-21 16:03:16 -0400 (Fri, 21 Mar 2008)
New Revision: 6259
Modified:
plog/branches/lifetype-1.2/class/data/validator/usernamevalidator.class.php
Log:
shouldn't really make a difference, but it looks better to have a non-zero in the range checker
Modified: plog/branches/lifetype-1.2/class/data/validator/usernamevalidator.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/validator/usernamevalidator.class.php 2008-03-21 19:28:28 UTC (rev 6258)
+++ plog/branches/lifetype-1.2/class/data/validator/usernamevalidator.class.php 2008-03-21 20:03:16 UTC (rev 6259)
@@ -31,7 +31,7 @@
$this->addRule( new NonEmptyRule());
$this->addRule( new RegExpRule( ONLY_ALPHANUMERIC_REGEXP ));
- $this->addRule( new StringRangeRule( 0, 15 )); // to make sure they're not longer than 15 characters
+ $this->addRule( new StringRangeRule( 1, 15 )); // to make sure they're not longer than 15 characters
$config =& Config::getConfig();
$forbiddenUsernames = $config->getValue( "forbidden_usernames", "" );
$forbiddenUsernamesArray = explode( " ", $forbiddenUsernames );
More information about the pLog-svn
mailing list