luci-app-firewall: missing variable declaration
authorSergey Ponomarev <stokito@gmail.com>
Sat, 10 Jun 2023 18:51:09 +0000 (21:51 +0300)
committerJo-Philipp Wich <jo@mein.io>
Thu, 2 Nov 2023 10:47:33 +0000 (11:47 +0100)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit b5ba9c3741d7e554463035e623b7d7e52c84d1fb)

applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js

index 71544a20d6ba4b41190b29aeaf1188a06d7f2c34..4b8e6bf604cc2e49cfcdfb5810216447d689860c 100644 (file)
@@ -22,7 +22,7 @@ function rule_proto_txt(s, ctHelpers) {
                };
        });
 
-       m = String(uci.get('firewall', s, 'helper') || '').match(/^(!\s*)?(\S+)$/);
+       var m = String(uci.get('firewall', s, 'helper') || '').match(/^(!\s*)?(\S+)$/);
        var h = m ? {
                val:  m[0].toUpperCase(),
                inv:  m[1],
index 018554e991b90a4d13e414598161d9be1e56be25..156992caf0e54bb42b9fb1fd71dbd92ae4cce5fb 100644 (file)
@@ -22,7 +22,7 @@ function rule_proto_txt(s, ctHelpers) {
                };
        });
 
-       m = String(uci.get('firewall', s, 'helper') || '').match(/^(!\s*)?(\S+)$/);
+       var m = String(uci.get('firewall', s, 'helper') || '').match(/^(!\s*)?(\S+)$/);
        var h = m ? {
                val:  m[0].toUpperCase(),
                inv:  m[1],
index 759c23e0d9224ff43ca70e54e6aacce4d2f07ea4..3c1bbaaa2a1b416db748c73d8c086cc791411e82 100644 (file)
@@ -23,7 +23,7 @@ function rule_proto_txt(s) {
                };
        });
 
-       m = String(uci.get('firewall', s, 'mark')).match(/^(!\s*)?(0x[0-9a-f]{1,8}|[0-9]{1,10})(?:\/(0x[0-9a-f]{1,8}|[0-9]{1,10}))?$/i);
+       var m = String(uci.get('firewall', s, 'mark')).match(/^(!\s*)?(0x[0-9a-f]{1,8}|[0-9]{1,10})(?:\/(0x[0-9a-f]{1,8}|[0-9]{1,10}))?$/i);
        var f = m ? {
                val:  m[0].toUpperCase().replace(/X/g, 'x'),
                inv:  m[1],