mirror of
https://github.com/sqlmapproject/sqlmap
synced 2026-01-21 15:42:30 +01:00
little precaution
This commit is contained in:
parent
4af000e699
commit
78024eafe0
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue