aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-10-14 15:06:36 +0000
committerpatdenice <patdenice@piwigo.org>2009-10-14 15:06:36 +0000
commit246634cb72fdd3c9e0b9f67be2bb9e7fe12aabee (patch)
treeb19bdf9f9ac724edd9b969facecdd6925cd98e6a /include/functions_user.inc.php
parent916fa5ea70737968d7bb6c41b21c470bc280838c (diff)
Replace some ereg function (depreciated) by preg_match.
git-svn-id: http://piwigo.org/svn/branches/2.0@4035 68402e56-0260-453c-a942-63ccdbb3a9ee
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'));
}