Skip to content

Commit

Permalink
SITES-24380 - Checkmarx Vulnerability - OOTB Search.js
Browse files Browse the repository at this point in the history
 * protecting href in search component search.js against XSS
  • Loading branch information
LSantha committed Sep 4, 2024
1 parent ebd90d1 commit 5c90fb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
var a = document.createElement("a");
a.href = href;
return a.pathname;
}
};

Search.prototype._markResults = function() {
var nodeList = this._elements.results.querySelectorAll(selectors.item.self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
var a = document.createElement("a");
a.href = href;
return a.pathname;
}
};

Search.prototype._markResults = function() {
var nodeList = this._elements.results.querySelectorAll(selectors.item.self);
Expand Down

0 comments on commit 5c90fb7

Please sign in to comment.