update for a "problem" reported by nightman@email.de where he lost all of large dumped table because in the middle of dumping 401 was raised

This commit is contained in:
Miroslav Stampar 2011-01-04 13:23:59 +00:00
parent eb11f5b2e0
commit 8a48baf789

View File

@ -37,6 +37,7 @@ from lib.core.data import queries
from lib.core.enums import DBMS
from lib.core.enums import EXPECTED
from lib.core.enums import PAYLOAD
from lib.core.exception import sqlmapConnectionException
from lib.core.exception import sqlmapMissingMandatoryOptionException
from lib.core.exception import sqlmapNoneDataException
from lib.core.exception import sqlmapUnsupportedFeatureException
@ -1351,6 +1352,11 @@ class Enumeration:
warnMsg = "Ctrl+C detected in dumping phase"
logger.warn(warnMsg)
except sqlmapConnectionException, e:
errMsg = "connection exception detected in dumping phase: "
errMsg += "'%s'" % e
logger.critical(errMsg)
for column, columnEntries in entries.items():
if lengths[column] < len(column):
length = len(column)