summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-05 11:21:55 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-05 11:21:55 +0000
commit9f6d1b10ad5a9098a8f72157875ce97fc44bc423 (patch)
treeeadbd0f5f69522608c98c3f53e220d926584dda5 /synapse/rest
parentAdd a bunch more unit tests for matrixService. (diff)
downloadsynapse-9f6d1b10ad5a9098a8f72157875ce97fc44bc423.tar.xz
Be sure to urlencode/decode event types correctly in both the web client and HS.
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/room.py b/synapse/rest/room.py
index ec0ce78fda..d97babea08 100644
--- a/synapse/rest/room.py
+++ b/synapse/rest/room.py
@@ -148,7 +148,7 @@ class RoomStateEventRestServlet(RestServlet):
         content = _parse_json(request)
 
         event = self.event_factory.create_event(
-            etype=event_type,
+            etype=urllib.unquote(event_type),
             content=content,
             room_id=urllib.unquote(room_id),
             user_id=user.to_string(),