mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Added unicode support also to SQLite (2 and 3) connector - see #184.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user