mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
bug fix (TypeError: object of type 'NoneType' has no len())
This commit is contained in:
parent
569e060aab
commit
ceeb6374e8
|
@ -1748,7 +1748,9 @@ def removeDynamicContent(page):
|
||||||
if page:
|
if page:
|
||||||
for item in kb.dynamicMarkings:
|
for item in kb.dynamicMarkings:
|
||||||
prefix, suffix = item
|
prefix, suffix = item
|
||||||
if prefix is None:
|
if prefix is None and suffix is None:
|
||||||
|
continue
|
||||||
|
elif prefix is None:
|
||||||
page = getCompiledRegex('(?s)^.+%s' % suffix).sub(suffix, page)
|
page = getCompiledRegex('(?s)^.+%s' % suffix).sub(suffix, page)
|
||||||
elif suffix is None:
|
elif suffix is None:
|
||||||
page = getCompiledRegex('(?s)%s.+$' % prefix).sub(prefix, page)
|
page = getCompiledRegex('(?s)%s.+$' % prefix).sub(prefix, page)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user