Revision f7ecea49
Added by Viktor Gurov about 5 years ago
src/usr/local/www/vpn_l2tp_users_edit.php | ||
---|---|---|
79 | 79 |
|
80 | 80 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); |
81 | 81 |
|
82 |
if (preg_match("/[^a-zA-Z0-9\.\-_]/", $_POST['usernamefld'])) { |
|
82 |
if (preg_match("/[^a-zA-Z0-9\.\@\-_]/", $_POST['usernamefld'])) {
|
|
83 | 83 |
$input_errors[] = gettext("The username contains invalid characters."); |
84 | 84 |
} |
85 | 85 |
if (preg_match("/^!/", trim($_POST['passwordfld']))) { |
Also available in: Unified diff
L2TP username containing @ (realm separator). Issue #9828
(cherry picked from commit f1efc7922e731f8f7f6c02f62fa974eeb884ea85)