Skip to content

Commit 1153b45

Browse files
committed
Minor update for an Issue sqlmapproject#111
1 parent fccd697 commit 1153b45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def decodePage(page, contentEncoding, contentType):
213213
if contentType and not isinstance(page, unicode) and any(map(lambda x: x in contentType.lower(), ("text/txt", "text/raw", "text/html", "text/xml"))):
214214
# e.g. Ãëàâà
215215
if "&#" in page:
216-
page = re.sub('&#(\d+);', lambda _: chr(int(_.group(1))) if int(_.group(1)) < 256 else _.group(0), page)
216+
page = re.sub('&#(\d{1,3});', lambda _: chr(int(_.group(1))) if int(_.group(1)) < 256 else _.group(0), page)
217217

218218
kb.pageEncoding = kb.pageEncoding or checkCharEncoding(getHeuristicCharEncoding(page))
219219
page = getUnicode(page, kb.pageEncoding)

0 commit comments

Comments
 (0)