luci-mod-network: Add length restriction to wireless interface name
authorHannu Nyman <hannu.nyman@iki.fi>
Sat, 14 Jan 2023 08:40:43 +0000 (10:40 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 14 Jan 2023 08:40:43 +0000 (10:40 +0200)
commit0c1be9ae5380d0ac11cccfe152a158eee5bd7125
tree62a457ed24eca1f8354a7f725c4c6f36814366b2
parent77f2d8895bce0a3e5ee9f72db9e1e8219c61f140
luci-mod-network: Add length restriction to wireless interface name

Based on issue #6101, add a maxlength of 15 chars to the wireless
interface's optional name field. Also validate it as uciname.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js