Skip to content

Commit

Permalink
Update testCode.js
Browse files Browse the repository at this point in the history
  • Loading branch information
UiANick authored Aug 1, 2023
1 parent 5a0746f commit b32001e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testFolder/testCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function viewUserProfile(userId: string) {
// Cross-site scripting (XSS) vulnerability - Unsafe data rendering
function displayMessage(message: string) {
const element = document.getElementById("message");
element.innerHTML = message;
element.innerHTML = message; // nosemgrep accepted risk
}

// Code with potential SQL injection vulnerability
Expand Down

0 comments on commit b32001e

Please sign in to comment.