mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Add some sanitizations (from @jakemcdermott, @mabashian)
This commit is contained in:
parent
ec3edb07e8
commit
01177f3632
@ -322,7 +322,7 @@ function projectsListController (
|
||||
if (data.related.current_update) {
|
||||
cancelSCMUpdate(data);
|
||||
} else {
|
||||
Alert(vm.strings.get('update.UPDATE_NOT_FOUND'), vm.strings.get('update.NO_RUNNING_UPDATE') + project.name, 'alert-info', undefined, undefined, undefined, undefined, true);
|
||||
Alert(vm.strings.get('update.UPDATE_NOT_FOUND'), vm.strings.get('update.NO_RUNNING_UPDATE') + $filter('sanitize')(project.name), 'alert-info', undefined, undefined, undefined, undefined, true);
|
||||
}
|
||||
})
|
||||
.catch(createErrorHandler('get project', 'GET'));
|
||||
|
@ -159,7 +159,7 @@
|
||||
$state.reload();
|
||||
} else if (res && res.data && res.data.status && res.data.status === "failed") {
|
||||
ngToast.danger({
|
||||
content: `<div><i class="fa fa-exclamation-triangle Toast-successIcon"></i> <b>${name}:</b> Notification failed.</div><div>${res.data.error}</div>`
|
||||
content: `<div><i class="fa fa-exclamation-triangle Toast-successIcon"></i> <b>${name}:</b> Notification failed.</div><div>${$filter('sanitize')(res.data.error)}</div>`
|
||||
});
|
||||
$state.reload();
|
||||
} else if (res && res.data && res.data.status && res.data.status === "pending" && pending_retries > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user