Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 660bf0b

Browse files
committed
fix for that struct pack error
1 parent ac55e1b commit 660bf0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/dbms/firebird/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def connect(self):
5454
self.checkFileDb()
5555

5656
try:
57-
self.connector = kinterbasdb.connect(host=str(self.hostname), database=str(self.db), user=str(self.user), password=str(self.password)) #, charset="UTF8")
57+
self.connector = kinterbasdb.connect(host=self.hostname.encode(conf.dataEncoding), database=self.db.encode(conf.dataEncoding), \
58+
user=self.user.encode(conf.dataEncoding), password=self.password.encode(conf.dataEncoding), charset="UTF8") #http://www.daniweb.com/forums/thread248499.html
5859
except kinterbasdb.OperationalError, msg:
5960
raise sqlmapConnectionException, msg[1]
60-
6161
self.setCursor()
6262
self.connected()
6363

0 commit comments

Comments
 (0)