1
0
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:
Bill Nottingham 2019-09-20 13:58:12 -04:00
parent ec3edb07e8
commit 01177f3632
2 changed files with 2 additions and 2 deletions

View File

@ -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'));

View File

@ -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) {