Minor patch

This commit is contained in:
Miroslav Stampar 2016-01-10 23:12:46 +01:00
parent e519ed2e18
commit e53e4dddf1
2 changed files with 1 additions and 4 deletions

View File

@ -2254,9 +2254,6 @@ def _setTorSocksProxySettings():
socks.wrapmodule(urllib2)
def _checkWebSocket():
infoMsg = "checking for WebSocket"
logger.debug(infoMsg)
if conf.url and (conf.url.startswith("ws:/") or conf.url.startswith("wss:/")):
try:
from websocket import ABNF

View File

@ -75,7 +75,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
testQuery = "SELECT %s('%s',%d)" % ("REPEAT" if Backend.isDbms(DBMS.MYSQL) else "REPLICATE", testChar, current)
result = unArrayizeValue(_oneShotErrorUse(testQuery, chunkTest=True))
if result and testChar in result:
if (result or "").startswith(testChar):
if result == testChar * current:
kb.errorChunkLength = current
break