mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
mssql likes to htmlescape error reports
This commit is contained in:
parent
088c815567
commit
db992a0a86
|
@ -22,6 +22,7 @@ from lib.core.common import listToStrValue
|
|||
from lib.core.common import randomInt
|
||||
from lib.core.common import replaceNewlineTabs
|
||||
from lib.core.common import safeStringFormat
|
||||
from lib.core.convert import htmlunescape
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
|
@ -76,6 +77,9 @@ def __oneShotErrorUse(expression, field):
|
|||
if threadData.lastRedirectMsg and threadData.lastRedirectMsg[0] == \
|
||||
threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE)
|
||||
|
||||
if isinstance(output, basestring):
|
||||
output = htmlunescape(output).replace("<br>", "\n").strip()
|
||||
|
||||
if Backend.getIdentifiedDbms() == DBMS.MYSQL:
|
||||
if offset == 1:
|
||||
retVal = output
|
||||
|
|
Loading…
Reference in New Issue
Block a user