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

fix error when there is a ' char in the config path. Fixes #7344

parent d741c9c1
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,8 @@ class Logger:
def attach_cache_database(self):
try:
self.cur.execute("ATTACH DATABASE '%s' AS cache" % CACHE_DB_PATH)
self.cur.execute("ATTACH DATABASE '%s' AS cache" % \
CACHE_DB_PATH.replace("'", "''"))
except sqlite.Error, e:
log.debug("Failed to attach cache database: %s" % str(e))
......
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