Skip to content

Commit

Permalink
double-sanityze query box
Browse files Browse the repository at this point in the history
  • Loading branch information
bblaisATcoveo committed Jul 11, 2024
1 parent 4a5bafe commit de857db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,10 @@ function initEngine() {
}

if ( hashParams.q && searchBoxElement ) {
searchBoxElement.value = hashParams.q;
searchBoxElement.value = DOMPurify.sanitize( hashParams.q );
}
else if ( urlParams.q && searchBoxElement ) {
searchBoxElement.value = urlParams.q;
searchBoxElement.value = DOMPurify.sanitize( urlParams.q );
}

// Get the query portion of the URL
Expand Down

0 comments on commit de857db

Please sign in to comment.