changeset eae8639691c6 in /home/hg/repos/gajim
branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=eae8639691c6 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 8fc14a7a37b1 -r eae8639691c6 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, e: log.debug("Failed to attach cache database: %s" % str(e))