mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
Firewall / alias, log is reserved too. closes https://github.com/opnsense/core/issues/4246
This commit is contained in:
parent
9ec7391446
commit
e7ee753f68
@ -59,7 +59,7 @@ class AliasNameField extends BaseField
|
||||
{
|
||||
$validators = parent::getValidators();
|
||||
$reservedwords = array(
|
||||
'all', 'pass', 'block', 'out', 'queue', 'max', 'min', 'pptp', 'pppoe', 'L2TP', 'OpenVPN', 'IPsec'
|
||||
'all', 'pass', 'block', 'out', 'queue', 'max', 'min', 'pptp', 'pppoe', 'L2TP', 'OpenVPN', 'IPsec', 'log'
|
||||
);
|
||||
if ($this->internalValue != null) {
|
||||
// add validations to deny reserved keywords, service/protocol names and invalid characters
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user