File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.4.1.8 "
21+ VERSION = "1.4.1.9 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -595,7 +595,7 @@ def getText(self, separator=u""):
595595 stopNode = self ._lastRecursiveChild ().next
596596 strings = []
597597 current = self .contents [0 ]
598- while current is not stopNode :
598+ while current and current is not stopNode :
599599 if isinstance (current , NavigableString ):
600600 strings .append (current .strip ())
601601 current = current .next
@@ -897,7 +897,7 @@ def recursiveChildGenerator(self):
897897 return # Note: https://stackoverflow.com/a/30217723 (PEP 479)
898898 stopNode = self ._lastRecursiveChild ().next
899899 current = self .contents [0 ]
900- while current is not stopNode :
900+ while current and current is not stopNode :
901901 yield current
902902 current = current .next
903903
You can’t perform that action at this time.
0 commit comments