aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index a8515a6a7..383674cfb 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -75,11 +75,11 @@ function register_user($login, $password, $mail_address,
{
array_push($errors, l10n('reg_err_login1'));
}
- if (ereg("^.* $", $login))
+ if (preg_match("/^.* $/", $login))
{
array_push($errors, l10n('reg_err_login2'));
}
- if (ereg("^ .*$", $login))
+ if (preg_match("/^ .*$/", $login))
{
array_push($errors, l10n('reg_err_login3'));
}