Skip to content

Commit

Permalink
fix replace siae activity id
Browse files Browse the repository at this point in the history
  • Loading branch information
chloend committed Oct 9, 2024
1 parent 8d07ddf commit e8b3c9c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lemarche/static/js/siae_activity_delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ document.addEventListener('alpine:init', function () {
if (modal.querySelector('#siae-activity-name-display')) {
modal.querySelector('#siae-activity-name-display').textContent = this.siaeActivityNameDisplay;
}
let formActionUrl = modalForm.getAttribute('data-action');
modalForm.setAttribute('action', formActionUrl.replace('siae-slug-to-replace', this.siaeSlug).replace('siae-activity-id-to-replace', this.siaeActivityId));

let formActionUrl = modalForm.getAttribute('data-action')
.replace('siae-slug-to-replace', this.siaeSlug)
.replace('siae-activity-id-to-replace', this.siaeActivityId);

modalForm.setAttribute('action', formActionUrl);

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.

const modalDialog = document.getElementById(modalID);
dsfr(modalDialog).modal.disclose();
Expand Down

0 comments on commit e8b3c9c

Please sign in to comment.