mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -04:00
added encoded for defense
This commit is contained in:
@@ -80,7 +80,7 @@
|
|||||||
confirmDeleteButton.addEventListener('click', function() {
|
confirmDeleteButton.addEventListener('click', function() {
|
||||||
if (currentServiceId) {
|
if (currentServiceId) {
|
||||||
var orgId = window.location.pathname.split('/')[2];
|
var orgId = window.location.pathname.split('/')[2];
|
||||||
deleteForm.action = '/organizations/' + orgId + '?action=delete-service&service_id=' + currentServiceId;
|
deleteForm.action = '/organizations/' + encodeURIComponent(orgId) + '?action=delete-service&service_id=' + encodeURIComponent(currentServiceId);
|
||||||
|
|
||||||
deleteForm.submit();
|
deleteForm.submit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user