From: Paul Donald Date: Fri, 22 May 2026 12:28:16 +0000 (+0300) Subject: luci-proto-mbim: correctness fixes X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=bd19e6b868b25196c6a1e1f0bda1c8dad0359b4a;p=openwrt-luci.git luci-proto-mbim: correctness fixes Signed-off-by: Paul Donald --- diff --git a/protocols/luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js b/protocols/luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js index 82472a3459..9791f44328 100644 --- a/protocols/luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js +++ b/protocols/luci-proto-mbim/htdocs/luci-static/resources/protocol/mbim.js @@ -64,6 +64,7 @@ return network.registerProtocol('mbim', { o = s.taboption('general', form.Value, 'apn', _('APN')); o.validate = function(section_id, value) { + if (value == null || value == '') return true; if (!/^[a-zA-Z0-9\-.]*[a-zA-Z0-9]$/.test(value)) return _('Invalid APN provided');