mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Bugtracker #3680 - missed one file
This commit is contained in:
12
signup.php
12
signup.php
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/signup.php,v $
|
| $Source: /cvs_backup/e107_0.8/signup.php,v $
|
||||||
| $Revision: 1.6 $
|
| $Revision: 1.7 $
|
||||||
| $Date: 2007-01-17 13:35:46 $
|
| $Date: 2007-02-04 09:30:56 $
|
||||||
| $Author: mrpete $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -375,13 +375,15 @@ if (isset($_POST['register']))
|
|||||||
if($_POST['password1xup']) $_POST['password1'] = $_POST['password1xup'];
|
if($_POST['password1xup']) $_POST['password1'] = $_POST['password1xup'];
|
||||||
if($_POST['password2xup']) $_POST['password2'] = $_POST['password2xup'];
|
if($_POST['password2xup']) $_POST['password2'] = $_POST['password2xup'];
|
||||||
|
|
||||||
if (strstr($_POST['loginname'], "#") || strstr($_POST['loginname'], "=") || strstr($_POST['loginname'], "\\") || strstr($_POST['loginname'], "'") || strstr($_POST['loginname'], '"'))
|
// Strip most invalid characters now
|
||||||
|
$temp_name = trim(preg_replace('/ |\#|\=|\$/', "", strip_tags($_POST['loginname'])));
|
||||||
|
if ($temp_name != $_POST['loginname'])
|
||||||
{
|
{
|
||||||
$error_message .= LAN_409."\\n";
|
$error_message .= LAN_409."\\n";
|
||||||
$error = TRUE;
|
$error = TRUE;
|
||||||
}
|
}
|
||||||
|
$_POST['loginname'] = $temp_name;
|
||||||
|
|
||||||
$_POST['loginname'] = trim(preg_replace("/ |\#|\=/", "", $_POST['loginname']));
|
|
||||||
if ($_POST['loginname'] == "Anonymous")
|
if ($_POST['loginname'] == "Anonymous")
|
||||||
{
|
{
|
||||||
$error_message .= LAN_103."\\n";
|
$error_message .= LAN_103."\\n";
|
||||||
|
Reference in New Issue
Block a user