Skip to content

Commit

Permalink
bug not detecting EOF correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Nov 9, 2018
1 parent e68ca23 commit 5827497
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wfuzz/plugins/payloads/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def __init__(self, params):
self.__count = None

def __next__(self):
line = self.f.readline().strip()
if line == '':
line = self.f.readline()
if not line:
self.f.close()
raise StopIteration
return line
return line.strip()

def count(self):
if self.__count is None:
Expand Down

0 comments on commit 5827497

Please sign in to comment.