mirror of
https://github.com/MengMengCode/CLICD.git
synced 2026-08-04 21:31:23 +08:00
Merge pull request #14 from MengMengCode/alert-autofix-29
Potential fix for code scanning alert no. 29: DOM text reinterpreted as HTML
This commit is contained in:
@@ -761,7 +761,8 @@
|
||||
var rows = currentRules.map(function (rule, idx) {
|
||||
var dir = (rule.direction || 'in').toLowerCase();
|
||||
var proto = (rule.protocol || 'tcp').toLowerCase();
|
||||
var action = (rule.action || 'ACCEPT').toUpperCase();
|
||||
var rawAction = (rule.action || 'ACCEPT').toUpperCase();
|
||||
var action = rawAction === 'ACCEPT' ? 'ACCEPT' : 'DROP';
|
||||
var network = (rule.network || 'ipv4').toLowerCase();
|
||||
var port = escapeHtml(portDisplay(rule.port));
|
||||
var srcIp = escapeHtml(sourceIpDisplay(rule.source_ip));
|
||||
|
||||
Reference in New Issue
Block a user