Skip to content

Commit

Permalink
SITES-24380 - Checkmarx Vulnerability - OOTB Search.js
Browse files Browse the repository at this point in the history
 * removed url encoding to avoid double encoding
  • Loading branch information
LSantha committed Sep 9, 2024
1 parent a539c01 commit 38eeb94
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 @@ -289,7 +289,7 @@
Search.prototype._safeHref = function(href) {
var a = document.createElement("a");
a.href = href;
return encodeURI(a.pathname);
return a.pathname;
};

Search.prototype._markResults = function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
Search.prototype._safeHref = function(href) {
var a = document.createElement("a");
a.href = href;
return encodeURI(a.pathname);
return a.pathname;
};

Search.prototype._markResults = function() {
Expand Down

0 comments on commit 38eeb94

Please sign in to comment.