mirror of
https://github.com/MengMengCode/CLICD.git
synced 2026-08-05 05:36:07 +08:00
Potential fix for code scanning alert no. 29: DOM text reinterpreted as HTML
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
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