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

Skip to content

Commit 65ec715

Browse files
committed
Fix for an Issue #218
1 parent c0f57f4 commit 65ec715

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/core/wordlist.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import zipfile
1010

1111
from lib.core.exception import sqlmapDataException
12+
from lib.core.settings import UNICODE_ENCODING
1213

1314
class Wordlist:
1415
"""
@@ -63,6 +64,10 @@ def next(self):
6364
except StopIteration:
6465
self.adjust()
6566
retVal = self.iter.next().rstrip()
67+
try:
68+
retVal = retVal.decode(UNICODE_ENCODING)
69+
except UnicodeDecodeError:
70+
continue
6671
if not self.proc_count or self.counter % self.proc_count == self.proc_id:
6772
break
6873
return retVal

0 commit comments

Comments
 (0)