Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit e0e685d

Browse files
authored
Merge pull request #380 from microsoft/alert-autofix-15
Potential fix for code scanning alert no. 15: DOM text reinterpreted as HTML
2 parents a4308c6 + fa7a2f7 commit e0e685d

File tree

1 file changed

+1
-1
lines changed
  • archive/Azure Blockchain Service/Resources/public/scripts

1 file changed

+1
-1
lines changed

archive/Azure Blockchain Service/Resources/public/scripts/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function submitComment(commentControl) {
2020

2121
var currentItemId = JSON.parse(localStorage.getItem('currentItemId'));
2222

23-
window.location.href = '/comments?classId=' + currentItemId + '&rating=' + sentimentRating + '&comments=' + comments;
23+
window.location.href = '/comments?classId=' + currentItemId + '&rating=' + sentimentRating + '&comments=' + encodeURIComponent(comments);
2424

2525
}).fail(function (xhr, status, err) {
2626
alert(err);

0 commit comments

Comments
 (0)