summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-25 11:02:19 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-25 11:02:19 +0000
commit3536fd7d60c626a20123105357c6b131b9ceb26f (patch)
tree256e25c7a32fbea145185188e8e714a55f1e7299 /synapse
parentDrop log level for incorrect logging contexts to WARN if the context is wrong... (diff)
downloadsynapse-3536fd7d60c626a20123105357c6b131b9ceb26f.tar.xz
Don't double url-decode state event types.
Diffstat (limited to 'synapse')
-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 4f6d039b61..cc6ffb9aff 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=urllib.unquote(event_type),
+            etype=event_type,  # already urldecoded
             content=content,
             room_id=urllib.unquote(room_id),
             user_id=user.to_string(),