mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Change alias name/pf keyword check to be case insensitive. Fixes #9231
(cherry picked from commit 2c5d3b1e50)
This commit is contained in:
parent
ef0a5fe3f5
commit
cb6b517bbd
@ -167,7 +167,7 @@ if ($_POST['save']) {
|
||||
|
||||
/* Check for reserved keyword names */
|
||||
foreach ($pf_reserved_keywords as $rk) {
|
||||
if ($rk == $_POST['name']) {
|
||||
if (strcasecmp($rk, $_POST['name']) == 0) {
|
||||
$input_errors[] = sprintf(gettext("Cannot use a reserved keyword as an alias name: %s"), $rk);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user