mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Removing trailing blanks
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user