Skip to content

Commit

Permalink
Escaping username component to allow usernames with slash.
Browse files Browse the repository at this point in the history
Fixes #3569.
  • Loading branch information
dennisoelkers committed Mar 6, 2017
1 parent def68ba commit e14a89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graylog2-web-interface/src/stores/users/UsersStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const UsersStore = {
},

deleteUser(username: string): Promise<string[]> {
const url = URLUtils.qualifyUrl(ApiRoutes.UsersApiController.delete(username).url);
const url = URLUtils.qualifyUrl(ApiRoutes.UsersApiController.delete(encodeURIComponent(username)).url);
const promise = fetch('DELETE', url);

promise.then(() => {
Expand Down

0 comments on commit e14a89f

Please sign in to comment.