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

Skip to content

Commit ea49fa2

Browse files
committed
Fix for an Issue #206
1 parent 1cb2ca4 commit ea49fa2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import os
1313
import re
1414
import socket
15+
import string
1516
import sys
1617
import threading
1718
import urllib2
@@ -1382,7 +1383,12 @@ class _(unicode): pass
13821383
paths.SQLMAP_OUTPUT_PATH = conf.oDir
13831384

13841385
if conf.string:
1385-
conf.string = conf.string.decode("unicode_escape")
1386+
try:
1387+
conf.string = conf.string.decode("unicode_escape")
1388+
except:
1389+
charset = string.whitespace.replace(" ", "")
1390+
for _ in charset:
1391+
conf.string = conf.string.replace(_.encode("string_escape"), _)
13861392

13871393
if conf.getAll:
13881394
map(lambda x: conf.__setitem__(x, True), WIZARD.ALL)

0 commit comments

Comments
 (0)