mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
bug fix (TypeError: object of type 'NoneType' has no len())
This commit is contained in:
@@ -1748,7 +1748,9 @@ def removeDynamicContent(page):
|
||||
if page:
|
||||
for item in kb.dynamicMarkings:
|
||||
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)
|
||||
elif suffix is None:
|
||||
page = getCompiledRegex('(?s)%s.+$' % prefix).sub(prefix, page)
|
||||
|
||||
Reference in New Issue
Block a user