mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Replace another depreciated functions.
Depreciated functions were removed in trunk in commit 3747 by Eric. git-svn-id: http://piwigo.org/svn/branches/2.0@4036 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -188,7 +188,7 @@ if ( isset( $_POST['submit'] ) and !isset( $_GET['waiting_id'] ) )
|
||||
{
|
||||
array_push( $error, l10n('upload_filenotfound') );
|
||||
}
|
||||
if ( !ereg( "([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)",
|
||||
if ( !preg_match( '/([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)/',
|
||||
$_POST['mail_address'] ) )
|
||||
{
|
||||
array_push( $error, l10n('reg_err_mail_address') );
|
||||
|
||||
Reference in New Issue
Block a user