luci-mod-network: fix tagging/pvid state parsing in bridge-vlan ports
authorJo-Philipp Wich <jo@mein.io>
Thu, 17 Jun 2021 15:33:49 +0000 (17:33 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 1 Jul 2021 19:15:04 +0000 (21:15 +0200)
commit4c0526357321cdd3d2e1b866336f875a7abc9ce3
tree0a62b21b894a8dbe4e6f454ed23713c474ca40e7
parentccf7c1e0363177f92e1a38b128b4a388c6e0e96d
luci-mod-network: fix tagging/pvid state parsing in bridge-vlan ports

The previous code naively looked for a `t` in the entire port spec,
wrongly matching untagged ports having a `t` in their name, such
as `eth0`.

Rework the logic to be more strict when parsing the port member
specification to avoid this issue.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 01eac366f69ba58c090ddc2cb70aeb069adbdd5a)
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js