aboutsummaryrefslogtreecommitdiffstats
path: root/upload.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-10-14 16:13:25 +0000
committerpatdenice <patdenice@piwigo.org>2009-10-14 16:13:25 +0000
commite04bd969cb1566afd69a1efdf5fb502829d6491e (patch)
treeb7897d31a6fbb60b670a91b1dbee21ac19029f49 /upload.php
parent246634cb72fdd3c9e0b9f67be2bb9e7fe12aabee (diff)
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
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload.php b/upload.php
index 14380a736..d1cffa25d 100644
--- a/upload.php
+++ b/upload.php
@@ -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') );