OPNSense/core 50da9e3 — src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes BaseListField.php
MVC: fix a validation bug while working on https://github.com/opnsense/core/issues/3252 InclusionIn() validation only works when using string, php seems to convert keys automatically, in which case the following input: $data = ["101" => "abc", "102" => "cde"]; would lead to these keys: array_keys($data) ==> [101, 102] when validating if 101,100 is a valid item in the list InclusionIn() seems to think so....
Delta | File | |
---|---|---|
+3 | -2 | src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseListField.php |
+3 | -2 | 1 files |