Skip to content

Commit 1a0c6f4

Browse files
authored
Merge commit from fork
Escape `data.x_forwarded_for` value before inserting it into the DOM
2 parents c39117e + 053cfb2 commit 1a0c6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/js/settings-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ $(() => {
115115
// Show x-forwarded-for instead of the remote address in italics
116116
// and show the remote address in the title attribute
117117
if (data.x_forwarded_for !== null) {
118-
$("td:eq(8)", row).html("<em>" + data.x_forwarded_for + "</em>");
118+
$("td:eq(8)", row).html("<em>" + utils.escapeHtml(data.x_forwarded_for) + "</em>");
119119
$("td:eq(8)", row).attr("title", "Original remote address: " + data.remote_addr);
120120
}
121121
},

0 commit comments

Comments
 (0)