diff --git a/static/js/directives/ui/service-keys-manager.js b/static/js/directives/ui/service-keys-manager.js index 636385019..295aa2692 100644 --- a/static/js/directives/ui/service-keys-manager.js +++ b/static/js/directives/ui/service-keys-manager.js @@ -11,7 +11,7 @@ angular.module('quay').directive('serviceKeysManager', function () { scope: { 'isEnabled': '=isEnabled' }, - controller: function($scope, $element, ApiService, TableService, UIService) { + controller: function($scope, $element, $sanitize, ApiService, TableService, UIService) { $scope.options = { 'filter': null, 'predicate': 'expiration_datetime', @@ -98,7 +98,7 @@ angular.module('quay').directive('serviceKeysManager', function () { $scope.showChangeName = function(key) { bootbox.prompt({ 'size': 'small', - 'title': 'Enter a friendly name for key ' + $scope.getKeyTitle(key), + 'title': 'Enter a friendly name for key ' + $sanitize($scope.getKeyTitle(key)), 'value': key.name || '', 'callback': function(value) { if (value != null) {