Skip to content

Commit

Permalink
Don't double url-decode state event types.
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Nov 25, 2014
1 parent 15099fa commit 3536fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def on_PUT(self, request, room_id, event_type, state_key):
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(),
Expand Down

0 comments on commit 3536fd7

Please sign in to comment.