Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-04 22:21:23 +0300
committerJo-Philipp Wich <jo@mein.io>2020-03-04 22:22:38 +0300
commit2c036b36ce76c3c7430bf936e131f0d9d4ab83c4 (patch)
tree8a773bb1fe26a6090c448067512f5dd42936d00b /applications/luci-app-firewall/htdocs
parentddc545f0f2010a542f9b455b38a3c087d585385f (diff)
luci-app-firewall: tools.firewall: properly handle protocol 0
The existing code failed to anticipate that '' == 0 in JS. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/htdocs')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js b/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
index cfa6c83651..640b28cf74 100644
--- a/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
+++ b/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
@@ -69,7 +69,7 @@ var protocols = [
];
function lookupProto(x) {
- if (x == null || x == '')
+ if (x == null || x === '')
return null;
var s = String(x).toLowerCase();