0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 07:21:37 +01:00

Merge pull request #441 from matrix-org/markjh/fts_skip_invalid

Skip events that where the body, name or topic isn't a string
This commit is contained in:
Mark Haines 2015-12-14 14:42:35 +00:00
commit 8505a4ddc3

View file

@ -85,6 +85,11 @@ class SearchStore(BackgroundUpdateStore):
# skip over it.
continue
if not isinstance(value, basestring):
# If the event body, name or topic isn't a string
# then skip over it
continue
event_search_rows.append((event_id, room_id, key, value))
if isinstance(self.database_engine, PostgresEngine):