mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
5361a14c1e
commit
d2a15d9afe
1 changed files with 7 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Reference in a new issue