From 4fb4975b4468cc661bb279662a2e47c293589072 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Thu, 30 Apr 2015 10:56:40 -0400 Subject: [PATCH] pulling back on some overzealous html sanitizing --- awx/ui/static/js/controllers/Inventories.js | 6 +++--- awx/ui/static/js/shared/prompt-dialog.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/ui/static/js/controllers/Inventories.js b/awx/ui/static/js/controllers/Inventories.js index 9660c1ca71..688f1f1fd4 100644 --- a/awx/ui/static/js/controllers/Inventories.js +++ b/awx/ui/static/js/controllers/Inventories.js @@ -16,7 +16,7 @@ import 'tower/job-templates/main'; export function InventoriesList($scope, $rootScope, $location, $log, - $routeParams, $compile, $filter, Rest, Alert, InventoryList, generateList, + $routeParams, $compile, $filter, sanitizeFilter, Rest, Alert, InventoryList, generateList, LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller, ClearScope, ProcessErrors, GetBasePath, Wait, Stream, EditInventoryProperties, Find, Empty, LogViewer) { @@ -346,7 +346,7 @@ export function InventoriesList($scope, $rootScope, $location, $log, Prompt({ hdr: 'Delete', - body: '
Delete inventory ' + name + '?
', + body: '
Delete inventory ' + $filter('sanitize')(name) + '?
', action: action }); }; @@ -370,7 +370,7 @@ export function InventoriesList($scope, $rootScope, $location, $log, }; } -InventoriesList.$inject = ['$scope', '$rootScope', '$location', '$log', '$routeParams', '$compile', '$filter', 'Rest', 'Alert', 'InventoryList', 'generateList', +InventoriesList.$inject = ['$scope', '$rootScope', '$location', '$log', '$routeParams', '$compile', '$filter', 'sanitizeFilter', 'Rest', 'Alert', 'InventoryList', 'generateList', 'LoadBreadCrumbs', 'Prompt', 'SearchInit', 'PaginateInit', 'ReturnToCaller', 'ClearScope', 'ProcessErrors', 'GetBasePath', 'Wait', 'Stream', 'EditInventoryProperties', 'Find', 'Empty', 'LogViewer' ]; diff --git a/awx/ui/static/js/shared/prompt-dialog.js b/awx/ui/static/js/shared/prompt-dialog.js index b3637961bd..96f0308fbe 100644 --- a/awx/ui/static/js/shared/prompt-dialog.js +++ b/awx/ui/static/js/shared/prompt-dialog.js @@ -36,7 +36,7 @@ angular.module('PromptDialog', ['Utilities', 'sanitizeFilter']) scope = dialog.scope(), cls, local_backdrop; scope.promptHeader = params.hdr; - scope.promptBody = $filter('sanitize')(params.body); + scope.promptBody = params.body; scope.promptAction = params.action; local_backdrop = (params.backdrop === undefined) ? "static" : params.backdrop;