From deb6c3caf8ec128c09f505b2fef9c954c763b958 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Tue, 10 Jul 2018 13:18:42 -0400 Subject: [PATCH] Sanitize credential name tags --- awx/ui/client/features/jobs/jobsList.controller.js | 2 +- awx/ui/client/features/output/details.component.js | 2 +- awx/ui/client/features/templates/templatesList.controller.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/features/jobs/jobsList.controller.js b/awx/ui/client/features/jobs/jobsList.controller.js index 7c2151471d..dc94915473 100644 --- a/awx/ui/client/features/jobs/jobsList.controller.js +++ b/awx/ui/client/features/jobs/jobsList.controller.js @@ -66,7 +66,7 @@ function ListJobsController ( credentials.map(credential => { const icon = `${credential.kind}`; const link = `/#/credentials/${credential.id}`; - const value = credential.name; + const value = $filter('sanitize')(credential.name); return { icon, link, value }; }); diff --git a/awx/ui/client/features/output/details.component.js b/awx/ui/client/features/output/details.component.js index 0fad725040..35a59d128e 100644 --- a/awx/ui/client/features/output/details.component.js +++ b/awx/ui/client/features/output/details.component.js @@ -417,7 +417,7 @@ function buildCredentialDetails (credential) { const icon = `${credential.kind}`; const link = `/#/credentials/${credential.id}`; const tooltip = strings.get('tooltips.CREDENTIAL'); - const value = credential.name; + const value = $filter('sanitize')(credential.name); return { icon, link, tooltip, value }; } diff --git a/awx/ui/client/features/templates/templatesList.controller.js b/awx/ui/client/features/templates/templatesList.controller.js index fe0a8d31af..28412ce3af 100644 --- a/awx/ui/client/features/templates/templatesList.controller.js +++ b/awx/ui/client/features/templates/templatesList.controller.js @@ -170,7 +170,7 @@ function ListTemplatesController( const icon = `${credential.kind}`; const link = `/#/credentials/${credential.id}`; const tooltip = strings.get('tooltips.VIEW_THE_CREDENTIAL'); - const value = credential.name; + const value = $filter('sanitize')(credential.name); return { icon, link, tooltip, value }; });