luci-app-firewall: missing variable declaration
[project/luci.git] / applications / luci-app-firewall / htdocs / luci-static / resources / view / firewall / rules.js
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],