mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
Portfield validation, missed a spot in https://github.com/opnsense/core/issues/2916
This commit is contained in:
parent
f5577bed58
commit
8c52aa1964
@ -149,8 +149,10 @@ class PortField extends BaseField
|
||||
{
|
||||
$validators = parent::getValidators();
|
||||
if ($this->internalValidationMessage == null) {
|
||||
$msg = "please specify a valid port number (1-65535) or name (" . implode(",", self::$wellknownservices) .
|
||||
")";
|
||||
$msg = "please specify a valid port number (1-65535)";
|
||||
if ($this->enableWellKown) {
|
||||
$msg .= " or name (" . implode(",", self::$wellknownservices) . ")";
|
||||
}
|
||||
} else {
|
||||
$msg = $this->internalValidationMessage;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user