From 9d5693ff2de8e50f62ec3b5496ac377944c9c9fa Mon Sep 17 00:00:00 2001 From: Ken Hoes Date: Wed, 13 Jul 2016 10:42:09 -0400 Subject: [PATCH 1/2] Sanitizing name in popup --- awx/ui/client/src/inventories/list/inventory-list.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/inventories/list/inventory-list.controller.js b/awx/ui/client/src/inventories/list/inventory-list.controller.js index e57a7beb32..142e7eff53 100644 --- a/awx/ui/client/src/inventories/list/inventory-list.controller.js +++ b/awx/ui/client/src/inventories/list/inventory-list.controller.js @@ -197,7 +197,7 @@ function InventoriesList($scope, $rootScope, $location, $log, ". Click for details\" aw-tip-placement=\"top\">\n"; html += "" + ($filter('longDate')(row.finished)).replace(/ /,'
') + ""; html += "" + ellipsis(row.name) + ""; + ". Click for details\" aw-tip-placement=\"top\">" + $filter('sanitize')(ellipsis(row.name)) + ""; html += "\n"; }); html += "\n"; From 53492f3fa1346f33b8f48a2b51c2ac587a68e4a2 Mon Sep 17 00:00:00 2001 From: Ken Hoes Date: Wed, 13 Jul 2016 15:33:24 -0400 Subject: [PATCH 2/2] Added sanitize filter to other name instances --- .../client/src/inventories/list/inventory-list.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/inventories/list/inventory-list.controller.js b/awx/ui/client/src/inventories/list/inventory-list.controller.js index 142e7eff53..a5d2b00a01 100644 --- a/awx/ui/client/src/inventories/list/inventory-list.controller.js +++ b/awx/ui/client/src/inventories/list/inventory-list.controller.js @@ -232,14 +232,14 @@ function InventoriesList($scope, $rootScope, $location, $log, html += ""; html += ``; html += "" + ($filter('longDate')(row.last_updated)).replace(/ /,'
') + ""; - html += "" + ellipsis(row.summary_fields.group.name) + ""; + html += "" + $filter('sanitize')(ellipsis(row.summary_fields.group.name)) + ""; html += "\n"; } else { html += ""; html += ""; html += "NA"; - html += "" + ellipsis(row.summary_fields.group.name) + ""; + html += "" + $filter('sanitize')(ellipsis(row.summary_fields.group.name)) + ""; html += "\n"; } });