firewall: ipsets.js: validate set names
authorJo-Philipp Wich <jo@mein.io>
Thu, 12 Oct 2023 07:38:46 +0000 (09:38 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 12 Oct 2023 07:41:31 +0000 (09:41 +0200)
commite23911eb0052e6d42acfb0c74b1dc912ce03b4cf
tree1f7ae18676fd6b83caedba49c7d042d6e04a6b24
parent257f54cb8bcd493d9be0a45a3c316668b793e8ae
firewall: ipsets.js: validate set names

Ensure that user supplied set name values conform to the nftables identifier
syntax constraints.

Fixes: #6633
Fixes: 0484343903 ("luci-app-firewall: implement IPsets GUI")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 755edf6fbf65fa2f6b778e7edfd8b56fd1742f70)
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js