projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa775ee
)
luci-app-firewall: missing variable declaration
6428/head
author
Sergey Ponomarev
<stokito@gmail.com>
Sat, 10 Jun 2023 18:51:09 +0000
(21:51 +0300)
committer
Sergey Ponomarev
<stokito@gmail.com>
Sat, 10 Jun 2023 18:51:09 +0000
(21:51 +0300)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
patch
|
blob
|
history
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js
patch
|
blob
|
history
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js
patch
|
blob
|
history
diff --git
a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
index ee8d36e0c619653239210bf76803436e976105f0..151a5338dfc855424c0669823d735e2451d55c5a 100644
(file)
--- a/
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
+++ b/
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
@@
-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],
diff --git
a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js
b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js
index 018554e991b90a4d13e414598161d9be1e56be25..156992caf0e54bb42b9fb1fd71dbd92ae4cce5fb 100644
(file)
--- a/
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js
+++ b/
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js
@@
-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],
diff --git
a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js
b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js
index 759c23e0d9224ff43ca70e54e6aacce4d2f07ea4..3c1bbaaa2a1b416db748c73d8c086cc791411e82 100644
(file)
--- a/
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js
+++ b/
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js
@@
-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],