Browse Source

Fix removing groups that have a slash in the name (#18228)

Fix removing groups that have a slash in the name
pull/18241/head
John Molakvoæ 6 years ago
committed by GitHub
parent
commit
c3d223fa58
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/settings/js/vue-settings-apps-users-management.js
  2. 2
      apps/settings/js/vue-settings-apps-users-management.js.map
  3. 2
      apps/settings/src/store/users.js

4
apps/settings/js/vue-settings-apps-users-management.js
File diff suppressed because it is too large
View File

2
apps/settings/js/vue-settings-apps-users-management.js.map
File diff suppressed because it is too large
View File

2
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 }))

Loading…
Cancel
Save