Skip to content

Commit

Permalink
Improving the JSP encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
indeewari committed Jan 10, 2025
1 parent aa26213 commit 9bea567
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1211,8 +1211,8 @@
function deleteClaimRow(obj) {
if ($('input:radio[name=claim_dialect]:checked').val() == "custom") {
if ($(obj).parent().parent().find('input.spClaimVal').val().length > 0) {
$('#roleClaim option[value="' + $(obj).parent().parent().find('input.spClaimVal').val() + '"]').remove();
$('#subject_claim_uri option[value="' + $(obj).parent().parent().find('input.spClaimVal').val() + '"]').remove();
$('#roleClaim option[value="' + encodeForHTML($(obj).parent().parent().find('input.spClaimVal').val()) + '"]').remove();
$('#subject_claim_uri option[value="' + encodeForHTML($(obj).parent().parent().find('input.spClaimVal').val()) + '"]').remove();
}
}
Expand Down

0 comments on commit 9bea567

Please sign in to comment.