1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/10896] Add missing email validation lost in develop merge

Fix incomplete merge, by adding a piece of code moved to another file in
olympus back.

PHPBB3-10896
This commit is contained in:
Nils Adermann
2013-02-24 17:42:53 +01:00
parent 5361a14c1e
commit d2a15d9afe

View File

@@ -443,6 +443,13 @@ function validate_config_vars($config_vars, &$cfg_array, &$error)
}
break;
case 'email':
if (!preg_match('/^' . get_preg_expression('email') . '$/i', $cfg_array[$config_name]))
{
$error[] = $user->lang['EMAIL_INVALID_EMAIL'];
}
break;
// Absolute path
case 'script_path':
if (!$cfg_array[$config_name])