changeset ae1f7b8bf059 in /home/hg/repos/gajim

branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=ae1f7b8bf059
description: fix error when there is a ' char in the config path. Fixes #7344

diffstat:

 src/common/logger.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r cc08ebd15953 -r ae1f7b8bf059 src/common/logger.py
--- a/src/common/logger.py      Wed Aug 14 14:56:15 2013 +0200
+++ b/src/common/logger.py      Wed Aug 14 18:58:48 2013 +0200
@@ -149,7 +149,8 @@
 
     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 as e:
             log.debug("Failed to attach cache database: %s" % str(e))
 
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to