mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ticket #297. Verify WPA PSK key length.
This commit is contained in:
parent
edc8a9f8d6
commit
08fae4381b
@ -439,6 +439,12 @@ if ($_POST) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($_POST['passphrase']) {
|
||||
$passlen = strlen($_POST['passphrase']);
|
||||
if ($passlen < 8 || $passlen > 64)
|
||||
$input_errors[] = "The length of the passphrase should be between 8 and 63 characters.";
|
||||
}
|
||||
}
|
||||
if (!$input_errors) {
|
||||
unset($wancfg['ipaddr']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user