Skip to content

Commit

Permalink
dm-4879 fix for dom text reinterpretation codeql warning (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeFraties authored Dec 2, 2024
1 parent 4ccd27e commit be3736f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/metrics_page.es6
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $(document).ready(function(){
var pos1 = curUrl.lastIndexOf("?duration");
curUrl = curUrl.substring(0, pos1);
}
let duration = $( "#metrics_duration" ).val();
let duration = encodeURIComponent($("#metrics_duration").val());
let newUrl = `${curUrl}?duration=${duration}`;
window.location.href = newUrl;
});
Expand Down

0 comments on commit be3736f

Please sign in to comment.