mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 13:54:58 -04:00
Be sure to urlencode/decode event types correctly in both the web client and HS.
This commit is contained in:
parent
a2aafeb959
commit
9f6d1b10ad
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue