mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 22:21:30 +00:00
Minor update
This commit is contained in:
4
thirdparty/beautifulsoup/beautifulsoup.py
vendored
4
thirdparty/beautifulsoup/beautifulsoup.py
vendored
@@ -559,7 +559,7 @@ class Tag(PageElement):
|
||||
self.escapeUnrecognizedEntities = parser.escapeUnrecognizedEntities
|
||||
|
||||
# Convert any HTML, XML, or numeric entities in the attribute values.
|
||||
convert = lambda(k, val): (k,
|
||||
convert = lambda k, val: (k,
|
||||
re.sub("&(#\d+|#x[0-9a-fA-F]+|\w+);",
|
||||
self._convertEntities,
|
||||
val))
|
||||
@@ -1828,7 +1828,7 @@ class UnicodeDammit:
|
||||
"iso-8859-1",
|
||||
"iso-8859-2"):
|
||||
markup = re.compile("([\x80-\x9f])").sub \
|
||||
(lambda(x): self._subMSChar(x.group(1)),
|
||||
(lambda x: self._subMSChar(x.group(1)),
|
||||
markup)
|
||||
|
||||
try:
|
||||
|
||||
2
thirdparty/clientform/clientform.py
vendored
2
thirdparty/clientform/clientform.py
vendored
@@ -290,7 +290,7 @@ def isstringlike(x):
|
||||
def choose_boundary():
|
||||
"""Return a string usable as a multipart boundary."""
|
||||
# follow IE and firefox
|
||||
nonce = "".join([str(random.randint(0, sys.maxint-1)) for i in 0,1,2])
|
||||
nonce = "".join([str(random.randint(0, sys.maxint-1)) for i in (0,1,2)])
|
||||
return "-"*27 + nonce
|
||||
|
||||
# This cut-n-pasted MimeWriter from standard library is here so can add
|
||||
|
||||
Reference in New Issue
Block a user