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

Skip to content

Commit 0121921

Browse files
committed
Minor bug fix (for --first/--last through problematic DBMSes)
1 parent 31daefc commit 0121921

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/techniques/blind/inference.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ def blindThread():
496496
dataToStdout(filterControlChars(commonValue[index - 1:]))
497497

498498
finalValue = commonValue
499-
500499
break
501500

502501
# If there is a common pattern starting with partialValue,
@@ -549,7 +548,9 @@ def blindThread():
549548
break
550549

551550
if (lastChar > 0 and index >= lastChar):
552-
finalValue = partialValue
551+
finalValue = "" if length == 0 else partialValue
552+
finalValue = finalValue.rstrip() if len(finalValue) > 1 else finalValue
553+
partialValue = None
553554
break
554555

555556
except KeyboardInterrupt:

0 commit comments

Comments
 (0)