Skip to content

Commit daa3cfd

Browse files
authored
Merge pull request #7 from Touexe/fix/xss
fix: Implement code from pull gophish#2991, fixing XSS vulnerability
2 parents bc56edb + fdc8e82 commit daa3cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/js/src/app/campaigns.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function deleteCampaign(idx) {
132132
type: "warning",
133133
animation: false,
134134
showCancelButton: true,
135-
confirmButtonText: "Delete " + campaigns[idx].name,
135+
confirmButtonText: "Delete " + escapeHtml(campaigns[idx].name),
136136
confirmButtonColor: "#428bca",
137137
reverseButtons: true,
138138
allowOutsideClick: false,

0 commit comments

Comments
 (0)