mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 23:35:31 +02:00
feat(security): update secured headers and sanitize team name (#2167)
This commit is contained in:
parent
e58acd7dd6
commit
8cd3964d75
3 changed files with 9 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
angular.module('portainer.app')
|
||||
.controller('TeamsController', ['$q', '$scope', '$state', 'TeamService', 'UserService', 'ModalService', 'Notifications', 'Authentication',
|
||||
function ($q, $scope, $state, TeamService, UserService, ModalService, Notifications, Authentication) {
|
||||
.controller('TeamsController', ['$q', '$scope', '$state', '$sanitize', 'TeamService', 'UserService', 'ModalService', 'Notifications', 'Authentication',
|
||||
function ($q, $scope, $state, $sanitize, TeamService, UserService, ModalService, Notifications, Authentication) {
|
||||
$scope.state = {
|
||||
actionInProgress: false
|
||||
};
|
||||
|
@ -22,7 +22,7 @@ function ($q, $scope, $state, TeamService, UserService, ModalService, Notificati
|
|||
};
|
||||
|
||||
$scope.addTeam = function() {
|
||||
var teamName = $scope.formValues.Name;
|
||||
var teamName = $sanitize($scope.formValues.Name);
|
||||
var leaderIds = [];
|
||||
angular.forEach($scope.formValues.Leaders, function(user) {
|
||||
leaderIds.push(user.Id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue