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, 17 Jun 2021 15:33:49 +0000 (17:33 +0200)
commit01eac366f69ba58c090ddc2cb70aeb069adbdd5a
treedf8d7403334d824e27cfe56dfe8711c99852802d
parente8a6f0bb7c7c24f31ddbc36f81fa97b3a2a53b2e
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>
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js