Merge pull request #18284 from nextcloud/backport/18228/16
[stable 16] Fix removing groups that have a slash in the name
This commit is contained in:
commit
436cb021f7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -320,7 +320,7 @@ const actions = {
|
|||
*/
|
||||
removeGroup(context, gid) {
|
||||
return api.requireAdmin().then((response) => {
|
||||
return api.delete(OC.linkToOCS(`cloud/groups/${gid}`, 2))
|
||||
return api.delete(OC.linkToOCS(`cloud/groups/${encodeURIComponent(gid)}`, 2))
|
||||
.then((response) => context.commit('removeGroup', gid))
|
||||
.catch((error) => {throw error;});
|
||||
}).catch((error) => context.commit('API_FAILURE', { gid, error }));
|
||||
|
|
Loading…
Reference in New Issue