Skip to content

Commit

Permalink
sanitize function
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Dec 13, 2023
1 parent 5f2d9d6 commit 2e95419
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/js/gene_collection_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,9 @@ const setupPagination = (pagination) => {
* @returns {void}
*/
const showGcActionNote = (gcId, shareUrl) => {
// sanitize shareUrl
shareUrl = shareUrl.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');

const noteSelector = `#result_gc_id_${gcId} span.js-gc-action-note`;
const noteSelecterElt = document.querySelector(noteSelector);

Expand Down

0 comments on commit 2e95419

Please sign in to comment.