From 74e8ada3ed75408949f10986bd280b87689f33c0 Mon Sep 17 00:00:00 2001 From: zak39 Date: Tue, 15 Oct 2024 14:25:52 +0200 Subject: [PATCH] fix(js): Prevent unsafe string concatenation in error logging --- src/services/spaceService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/spaceService.js b/src/services/spaceService.js index be9d28ce0..33fd815ec 100644 --- a/src/services/spaceService.js +++ b/src/services/spaceService.js @@ -121,7 +121,7 @@ export function addGroupToWorkspace(spaceId, gid) { 'Error groups', `Impossible to attach the ${error} group to workspace. May be a problem with the connection ?`, 5000) - console.error(`Impossible to attach the ${gid} group to workspace. May be a problem with the connection ?`, error) + console.error(`Impossible to attach the group to workspace. May be a problem with the connection ?`, gid, error) throw new AddGroupToGroupfolderError('Error to add Space Manager group in the groupfolder') }) }