mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-28 08:53:16 +03:00
Minor update
This commit is contained in:
parent
09be7cb361
commit
89d13aaee4
|
@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
|
||||||
from lib.core.enums import OS
|
from lib.core.enums import OS
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.3.3.76"
|
VERSION = "1.3.3.77"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
9
thirdparty/beautifulsoup/beautifulsoup.py
vendored
9
thirdparty/beautifulsoup/beautifulsoup.py
vendored
|
@ -835,6 +835,7 @@ class Tag(PageElement):
|
||||||
s.append(text)
|
s.append(text)
|
||||||
if prettyPrint:
|
if prettyPrint:
|
||||||
s.append("\n")
|
s.append("\n")
|
||||||
|
|
||||||
return ''.join(s)
|
return ''.join(s)
|
||||||
|
|
||||||
#Soup methods
|
#Soup methods
|
||||||
|
@ -1226,8 +1227,8 @@ class BeautifulStoneSoup(Tag, sgmllib.SGMLParser):
|
||||||
def isSelfClosingTag(self, name):
|
def isSelfClosingTag(self, name):
|
||||||
"""Returns true iff the given string is the name of a
|
"""Returns true iff the given string is the name of a
|
||||||
self-closing tag according to this parser."""
|
self-closing tag according to this parser."""
|
||||||
return self.SELF_CLOSING_TAGS.has_key(name) \
|
return name in self.SELF_CLOSING_TAGS \
|
||||||
or self.instanceSelfClosingTags.has_key(name)
|
or name in self.instanceSelfClosingTags
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
Tag.__init__(self, self, self.ROOT_TAG_NAME)
|
Tag.__init__(self, self, self.ROOT_TAG_NAME)
|
||||||
|
@ -1319,7 +1320,7 @@ class BeautifulStoneSoup(Tag, sgmllib.SGMLParser):
|
||||||
|
|
||||||
nestingResetTriggers = self.NESTABLE_TAGS.get(name)
|
nestingResetTriggers = self.NESTABLE_TAGS.get(name)
|
||||||
isNestable = nestingResetTriggers != None
|
isNestable = nestingResetTriggers != None
|
||||||
isResetNesting = self.RESET_NESTING_TAGS.has_key(name)
|
isResetNesting = name in self.RESET_NESTING_TAGS
|
||||||
popTo = None
|
popTo = None
|
||||||
inclusive = True
|
inclusive = True
|
||||||
for i in xrange(len(self.tagStack)-1, 0, -1):
|
for i in xrange(len(self.tagStack)-1, 0, -1):
|
||||||
|
@ -1534,7 +1535,7 @@ class BeautifulSoup(BeautifulStoneSoup):
|
||||||
BeautifulStoneSoup before writing your own subclass."""
|
BeautifulStoneSoup before writing your own subclass."""
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
if not kwargs.has_key('smartQuotesTo'):
|
if 'smartQuotesTo' not in kwargs:
|
||||||
kwargs['smartQuotesTo'] = self.HTML_ENTITIES
|
kwargs['smartQuotesTo'] = self.HTML_ENTITIES
|
||||||
kwargs['isHTML'] = True
|
kwargs['isHTML'] = True
|
||||||
BeautifulStoneSoup.__init__(self, *args, **kwargs)
|
BeautifulStoneSoup.__init__(self, *args, **kwargs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user