mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Bugtracker #3680 - '$' not allowed in login name
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/usersettings.php,v $
|
||||
| $Revision: 1.5 $
|
||||
| $Date: 2007-01-29 20:39:41 $
|
||||
| $Revision: 1.6 $
|
||||
| $Date: 2007-01-29 21:03:53 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -137,6 +137,16 @@ if (isset($_POST['updatesettings']))
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_POST['loginname']))
|
||||
{ // Only check if its been edited
|
||||
$temp_name = trim(preg_replace('/ |\#|\=|\$/', "", strip_tags($_POST['loginname'])));
|
||||
if ($temp_name != $_POST['loginname'])
|
||||
{
|
||||
$error .= LAN_USET_13."\\n";
|
||||
}
|
||||
$_POST['loginname'] = $temp_name;
|
||||
}
|
||||
|
||||
// ====================================================================
|
||||
|
||||
$pwreset = "";
|
||||
|
Reference in New Issue
Block a user