Skip to content
Snippets Groups Projects
Commit 0ba39392 authored by Erik Johnston's avatar Erik Johnston
Browse files

Escape non printing ascii character

parent f488293d
No related branches found
No related tags found
No related merge requests found
......@@ -102,10 +102,10 @@ class RoomStore(SQLBaseStore):
"ON c.event_id = room_names.event_id "
)
# We use non printing ascii character US () as a seperator
# We use non printing ascii character US (\x1F) as a separator
sql = (
"SELECT r.room_id, n.name, t.topic, "
"group_concat(a.room_alias, '') "
"group_concat(a.room_alias, '\x1F') "
"FROM rooms AS r "
"LEFT JOIN (%(topic)s) AS t ON t.room_id = r.room_id "
"LEFT JOIN (%(name)s) AS n ON n.room_id = r.room_id "
......@@ -130,7 +130,7 @@ class RoomStore(SQLBaseStore):
"room_id": r[0],
"name": r[1],
"topic": r[2],
"aliases": r[3].split(""),
"aliases": r[3].split("\x1F"),
}
for r in rows
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment