From b380d34d3c6b2f33ef0c36b3ea27b29d1c58e722 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sat, 29 May 2010 15:35:38 +0000 Subject: [PATCH] Added unicode support also to SQLite (2 and 3) connector - see #184. --- plugins/dbms/sqlite/connector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/dbms/sqlite/connector.py b/plugins/dbms/sqlite/connector.py index 19997223c..c4d4088c6 100644 --- a/plugins/dbms/sqlite/connector.py +++ b/plugins/dbms/sqlite/connector.py @@ -28,6 +28,7 @@ try: except ImportError, _: pass +from lib.core.convert import utf8encode from lib.core.data import conf from lib.core.data import logger from lib.core.exception import sqlmapConnectionException @@ -75,7 +76,7 @@ class Connector(GenericConnector): def execute(self, query): try: - self.cursor.execute(query) + self.cursor.execute(utf8encode(query)) except sqlite3.OperationalError, msg: logger.log(8, msg[0]) except sqlite3.DatabaseError, msg: