mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
fix for a bug "ordinal not in range(128)" reported by bugtrace
This commit is contained in:
@@ -1095,7 +1095,7 @@ def sanitizeAsciiString(subject):
|
||||
if ord(subject[i]) >= 128:
|
||||
index = i
|
||||
break
|
||||
if not index:
|
||||
if index is None:
|
||||
return subject
|
||||
else:
|
||||
return subject[:index] + "".join(subject[i] if ord(subject[i]) < 128 else '?' for i in xrange(index, len(subject)))
|
||||
|
||||
Reference in New Issue
Block a user