mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
MFC
The aliases edit page says we allow the - and _ but the pattern did not match.
This commit is contained in:
parent
d73b38c47e
commit
b7cb604258
@ -215,7 +215,7 @@ function is_validaliasname($name) {
|
||||
if (in_array($name, $reserved, true))
|
||||
return; /* return NULL */
|
||||
|
||||
if (!preg_match("/[^a-zA-Z0-9]/", $name))
|
||||
if (!preg_match("/[^a-zA-Z0-9\-_]/", $name))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
@ -563,4 +563,4 @@ function mac_format($clientmac) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user