mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
little precaution
This commit is contained in:
parent
4af000e699
commit
78024eafe0
|
@ -1343,6 +1343,11 @@ def getFileItems(filename, commentPrefix='#', unicode_=True):
|
|||
if line.find(commentPrefix) != -1:
|
||||
line = line[:line.find(commentPrefix)]
|
||||
line = line.strip()
|
||||
if not unicode_:
|
||||
try:
|
||||
str.encode(line)
|
||||
except UnicodeDecodeError:
|
||||
continue
|
||||
if line:
|
||||
retVal.append(line)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user