Skip to content
Snippets Groups Projects
Commit c78a8b43 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[michael] fix bug when searching text containing a ' in history window. fixes #3091

parent 54d9b873
No related branches found
No related tags found
No related merge requests found
......@@ -484,7 +484,7 @@ class Logger:
else: # user just typed something, we search in message column
where_sql = self._build_contact_where(account, jid)
like_sql = '%' + query + '%'
like_sql = '%' + query.replace("'", "''") + '%'
self.cur.execute('''
SELECT contact_name, time, kind, show, message, subject FROM logs
WHERE (%s) AND message LIKE '%s'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment