mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fixes #4063
This commit is contained in:
parent
49afd47c13
commit
0ea39098bd
2 changed files with 3 additions and 3 deletions
4
thirdparty/beautifulsoup/beautifulsoup.py
vendored
4
thirdparty/beautifulsoup/beautifulsoup.py
vendored
|
|
@ -595,7 +595,7 @@ class Tag(PageElement):
|
|||
stopNode = self._lastRecursiveChild().next
|
||||
strings = []
|
||||
current = self.contents[0]
|
||||
while current is not stopNode:
|
||||
while current and current is not stopNode:
|
||||
if isinstance(current, NavigableString):
|
||||
strings.append(current.strip())
|
||||
current = current.next
|
||||
|
|
@ -897,7 +897,7 @@ class Tag(PageElement):
|
|||
return # Note: https://stackoverflow.com/a/30217723 (PEP 479)
|
||||
stopNode = self._lastRecursiveChild().next
|
||||
current = self.contents[0]
|
||||
while current is not stopNode:
|
||||
while current and current is not stopNode:
|
||||
yield current
|
||||
current = current.next
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue