PortField, mixed types seem to invalidate the validator.... for https://github.com/opnsense/core/issues/2916

This commit is contained in:
Ad Schellevis 2018-11-14 23:59:21 +01:00
parent 1c683e68ca
commit 9349cffb24

View File

@ -107,7 +107,7 @@ class PortField extends BaseField
self::$internalOptionList = array("any") + self::$wellknownservices;
for ($port=1; $port <= 65535; $port++) {
self::$internalOptionList[] = $port;
self::$internalOptionList[] = (string)$port;
}
}
}