mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
fix xss vulnerability in notification template test, resolves #2727
This commit is contained in:
@@ -147,7 +147,7 @@ export default
|
|||||||
};
|
};
|
||||||
|
|
||||||
scope.testNotification = function(){
|
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.setUrl(defaultUrl + this.notification_template.id +'/test/');
|
||||||
Rest.post({})
|
Rest.post({})
|
||||||
.then(function (data) {
|
.then(function (data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user