Be sure to urlencode/decode event types correctly in both the web client and HS.

This commit is contained in:
Kegan Dougal 2014-11-05 11:21:55 +00:00
parent a2aafeb959
commit 9f6d1b10ad
3 changed files with 6 additions and 6 deletions

View file

@ -375,9 +375,9 @@ angular.module('matrixService', [])
sendStateEvent: function(room_id, eventType, content, state_key) {
var path = "/rooms/$room_id/state/"+eventType;
var path = "/rooms/$room_id/state/"+ encodeURIComponent(eventType);
if (state_key !== undefined) {
path += "/" + state_key;
path += "/" + encodeURIComponent(state_key);
}
room_id = encodeURIComponent(room_id);
path = path.replace("$room_id", room_id);