summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-firewall
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-04 20:21:23 +0100
committerJo-Philipp Wich <jo@mein.io>2020-03-04 20:22:38 +0100
commit2c036b36ce76c3c7430bf936e131f0d9d4ab83c4 (patch)
tree8a773bb1fe26a6090c448067512f5dd42936d00b /applications/luci-app-firewall
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')
-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 cfa6c8365..640b28cf7 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();