luci-mod-status: ensure comment escaping in iptables status output
authorJo-Philipp Wich <jo@mein.io>
Fri, 15 Nov 2019 17:51:30 +0000 (18:51 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 15 Nov 2019 17:52:47 +0000 (18:52 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b3ef7a17eacc6ce2f2385bbb517c67906dd2a753)

modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js

index a742243a036faee8ad6977e8b4c50bb14fbaf9fb..eaeba578fe1c6a3eff3ccbfe63ccf027ced4db54 100644 (file)
@@ -194,7 +194,7 @@ function parse_output(table, s)
                                srcnet,
                                dstnet,
                                options,
-                               comment
+                               [ comment ]
                        ]);
 
                        if (target) {