Skip to content

Commit 54e3423

Browse files
committed
Fixes #4883
1 parent 88798cf commit 54e3423

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/core/common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,10 +1028,12 @@ def dataToStdout(data, forceOutput=False, bold=False, contentType=None, status=C
10281028
sys.stdout.write(stdoutEncode(clearColors(data)), status, contentType)
10291029
else:
10301030
sys.stdout.write(stdoutEncode(setColor(data, bold=bold) if coloring else clearColors(data)))
1031-
1032-
sys.stdout.flush()
10331031
except IOError:
10341032
pass
1033+
except UnicodeEncodeError:
1034+
sys.stdout.write(re.sub(r"[^ -~]", '?', clearColors(data)))
1035+
finally:
1036+
sys.stdout.flush()
10351037

10361038
if multiThreadMode:
10371039
logging._releaseLock()

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.11.2"
23+
VERSION = "1.5.11.3"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)