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>
(cherry picked from commit 2c036b36ce
)
This commit is contained in:
parent
fb679333a5
commit
e8c638c869
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ var protocols = [
|
|||
];
|
||||
|
||||
function lookupProto(x) {
|
||||
if (x == null || x == '')
|
||||
if (x == null || x === '')
|
||||
return null;
|
||||
|
||||
var s = String(x).toLowerCase();
|
||||
|
|
Loading…
Reference in a new issue