mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
fix for a bug reported by g@brindi.si (UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
47: ordinal not in range(128))
This commit is contained in:
parent
f434c3b29e
commit
e9286ddd5b
|
@ -133,6 +133,7 @@ class Connect:
|
||||||
refreshing = kwargs.get('refreshing', False)
|
refreshing = kwargs.get('refreshing', False)
|
||||||
retrying = kwargs.get('retrying', False)
|
retrying = kwargs.get('retrying', False)
|
||||||
redirecting = kwargs.get('redirecting', False)
|
redirecting = kwargs.get('redirecting', False)
|
||||||
|
crawling = kwargs.get('crawling', False)
|
||||||
|
|
||||||
if not urlparse.urlsplit(url).netloc:
|
if not urlparse.urlsplit(url).netloc:
|
||||||
url = urlparse.urljoin(conf.url, url)
|
url = urlparse.urljoin(conf.url, url)
|
||||||
|
@ -188,7 +189,7 @@ class Connect:
|
||||||
|
|
||||||
return page
|
return page
|
||||||
|
|
||||||
elif refreshing:
|
elif any ([refreshing, crawling]):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
elif target:
|
elif target:
|
||||||
|
|
|
@ -55,7 +55,7 @@ class Crawler:
|
||||||
content = None
|
content = None
|
||||||
try:
|
try:
|
||||||
if current:
|
if current:
|
||||||
content = Request.getPage(url=current, raise404=False)[0]
|
content = Request.getPage(url=current, crawling=True, raise404=False)[0]
|
||||||
except sqlmapConnectionException, e:
|
except sqlmapConnectionException, e:
|
||||||
errMsg = "connection exception detected (%s). skipping " % e
|
errMsg = "connection exception detected (%s). skipping " % e
|
||||||
errMsg += "url '%s'" % current
|
errMsg += "url '%s'" % current
|
||||||
|
|
Loading…
Reference in New Issue
Block a user