mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
PHP 5.3 compatibility - Deprecated functions were replace as follows :
ereg() -> preg_match() ereg_replace() -> preg_replace() eregi() -> preg_match() with the 'i' modifier eregi_replace() -> preg_replace() with the 'i' modifier set_magic_quotes_runtime() -> No more usefull. Fixed it by adding "@" prefix. git-svn-id: http://piwigo.org/svn/trunk@3747 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user