aboutsummaryrefslogtreecommitdiffstats
path: root/upload.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/upload.php b/upload.php
index 3cbd1f8cd..d1cffa25d 100644
--- a/upload.php
+++ b/upload.php
@@ -57,7 +57,7 @@ function validate_upload( $temp_name, $my_max_file_size,
$result = array();
$result['error'] = array();
- //echo $_FILES['picture']['name']."<br>".$temp_name;
+ //echo $_FILES['picture']['name']."<br />".$temp_name;
$extension = get_extension( $_FILES['picture']['name'] );
if (!in_array($extension, $conf['picture_ext']))
{
@@ -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') );