mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Removing trailing blanks
This commit is contained in:
parent
2e97405ffa
commit
c41618416c
|
@ -245,7 +245,7 @@ def decodePage(page, contentEncoding, contentType):
|
|||
# e.g. ’…™
|
||||
if "&#" in page:
|
||||
page = re.sub('&#(\d+);', lambda _: unichr(int(_.group(1))), page)
|
||||
|
||||
|
||||
# e.g. ζ
|
||||
page = re.sub('&([^;]+);', lambda _: unichr(htmlEntities[_.group(1)]) if htmlEntities.get(_.group(1), 0) > 255 else _.group(0), page)
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ def tamper(payload, **kwargs):
|
|||
retVal += random.choice(blanks)
|
||||
|
||||
continue
|
||||
|
||||
|
||||
retVal += payload[i]
|
||||
|
||||
return retVal
|
||||
|
|
Loading…
Reference in New Issue
Block a user