diff options
Diffstat (limited to 'js/app/directives/credentialtemplate.js')
-rw-r--r-- | js/app/directives/credentialtemplate.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/app/directives/credentialtemplate.js b/js/app/directives/credentialtemplate.js index 34862847..9b3e2d3e 100644 --- a/js/app/directives/credentialtemplate.js +++ b/js/app/directives/credentialtemplate.js @@ -29,8 +29,8 @@ * # passwordGen */ angular.module('passmanApp') - .directive('credentialTemplate', ['EncryptService', '$translate', 'FileService', 'ShareService', 'NotificationService', 'CredentialService', - function (EncryptService, $translate, FileService, ShareService, NotificationService, CredentialService) { + .directive('credentialTemplate', ['EncryptService', '$translate', 'FileService', 'ShareService', 'NotificationService', 'CredentialService', 'escapeHTMLFilter', + function (EncryptService, $translate, FileService, ShareService, NotificationService, CredentialService, escapeHTMLFilter) { return { templateUrl: 'views/partials/credential_template.html', replace: true, @@ -49,7 +49,7 @@ } var file_data = EncryptService.decryptString(result.file_data, key); - download(file_data, ShareService.escapeHTML(file.filename), file.mimetype); + download(file_data, escapeHTMLFilter(file.filename), file.mimetype); }; |