mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Impose minimum length on display name
This commit is contained in:
12
signup.php
12
signup.php
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/signup.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2006-12-27 22:26:41 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2006-12-30 22:39:43 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -394,6 +394,14 @@ if (isset($_POST['register']))
|
||||
$_POST['name'] = $_POST['loginname'];
|
||||
}
|
||||
|
||||
// Impose a minimum length on display name
|
||||
$_POST['name'] = trim($_POST['name']);
|
||||
if (strlen($_POST['name']) < 2)
|
||||
{
|
||||
$error_message .= LAN_SIGNUP_56."\\n";
|
||||
$error = TRUE;
|
||||
}
|
||||
|
||||
// Check for disallowed names.
|
||||
if(isset($pref['signup_disallow_text']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user