Skip to content

Commit

Permalink
text parses does not update index when reading full string
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavi Mendez committed Nov 5, 2020
1 parent e387672 commit 43bd5f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wfuzz/externals/reqresp/TextParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ def readLine(self):
if self.oldindex >= 0:
self.newindex = self.string.find("\n", self.oldindex, len(self.string))
if self.newindex == -1:
self.lastFull_line = self.string[self.oldindex : len(self.string)]
else:
self.lastFull_line = self.string[self.oldindex : self.newindex + 1]
self.newindex = len(self.string) - 1
self.lastFull_line = self.string[self.oldindex : self.newindex + 1]

self.oldindex = self.newindex + 1
else:
Expand Down

0 comments on commit 43bd5f0

Please sign in to comment.