1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Impose minimum length on display name

This commit is contained in:
e107steved
2006-12-30 22:39:43 +00:00
parent 70f1f33684
commit 02576e0037
4 changed files with 26 additions and 10 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/usersettings.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:10 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2006-12-30 22:39:43 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -181,6 +181,12 @@ if (isset($_POST['updatesettings']))
}
// $username = strip_tags($_POST['username']);
// Impose a minimum length on display name
$_POST['username'] = trim($_POST['username']);
if (strlen($_POST['username']) < 2)
{
$error .= LAN_USET_12."\\n";
}
$user_sess = "";
if ($file_userfile['error'] != 4)