mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +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:
@@ -443,6 +443,13 @@ function validate_config_vars($config_vars, &$cfg_array, &$error)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'email':
|
||||||
|
if (!preg_match('/^' . get_preg_expression('email') . '$/i', $cfg_array[$config_name]))
|
||||||
|
{
|
||||||
|
$error[] = $user->lang['EMAIL_INVALID_EMAIL'];
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
// Absolute path
|
// Absolute path
|
||||||
case 'script_path':
|
case 'script_path':
|
||||||
if (!$cfg_array[$config_name])
|
if (!$cfg_array[$config_name])
|
||||||
|
Reference in New Issue
Block a user