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 3ead0e820..98a417ecb 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'));
}