mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +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. ’…™
|
# e.g. ’…™
|
||||||
if "&#" in page:
|
if "&#" in page:
|
||||||
page = re.sub('&#(\d+);', lambda _: unichr(int(_.group(1))), page)
|
page = re.sub('&#(\d+);', lambda _: unichr(int(_.group(1))), page)
|
||||||
|
|
||||||
# e.g. ζ
|
# e.g. ζ
|
||||||
page = re.sub('&([^;]+);', lambda _: unichr(htmlEntities[_.group(1)]) if htmlEntities.get(_.group(1), 0) > 255 else _.group(0), page)
|
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)
|
retVal += random.choice(blanks)
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
retVal += payload[i]
|
retVal += payload[i]
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user