From ea49fa2db25c1480ad0846bfcd6de69a650f53ac Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 18 Oct 2012 11:11:20 +0200 Subject: [PATCH] Fix for an Issue #206 --- lib/core/option.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index e31d2ca52..f4f2e7d45 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -12,6 +12,7 @@ import logging import os import re import socket +import string import sys import threading import urllib2 @@ -1382,7 +1383,12 @@ def __cleanupOptions(): paths.SQLMAP_OUTPUT_PATH = conf.oDir if conf.string: - conf.string = conf.string.decode("unicode_escape") + try: + conf.string = conf.string.decode("unicode_escape") + except: + charset = string.whitespace.replace(" ", "") + for _ in charset: + conf.string = conf.string.replace(_.encode("string_escape"), _) if conf.getAll: map(lambda x: conf.__setitem__(x, True), WIZARD.ALL)