diff options
author | Gary Kim <gary@garykim.dev> | 2019-12-04 21:45:33 +0800 |
---|---|---|
committer | Gary Kim <gary@garykim.dev> | 2019-12-05 04:10:18 +0800 |
commit | 5ae38605ee2580e40595c35162472faba2b3cbe5 (patch) | |
tree | 0974de4bfec639a010be8c046c74ab10aeeca938 /apps/settings/src | |
parent | b0a702897877b0fde58b3eb6a0416a888a6c15c2 (diff) | |
download | nextcloud-server-5ae38605ee2580e40595c35162472faba2b3cbe5.tar.gz nextcloud-server-5ae38605ee2580e40595c35162472faba2b3cbe5.zip |
Fix removing groups that have a slash in the name
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/store/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/src/store/users.js b/apps/settings/src/store/users.js index 7a98af147e8..c888be9a52d 100644 --- a/apps/settings/src/store/users.js +++ b/apps/settings/src/store/users.js @@ -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 })) |