fix xss vulnerability in notification template test, resolves #2727

This commit is contained in:
Leigh Johnson 2016-07-01 09:02:29 -04:00
parent 2ff5efda3b
commit 2df08d8fc6

View File

@ -147,7 +147,7 @@ export default
};
scope.testNotification = function(){
var name = this.notification_template.name;
var name = $filter('sanitize')(this.notification_template.name);
Rest.setUrl(defaultUrl + this.notification_template.id +'/test/');
Rest.post({})
.then(function (data) {