mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
code refactoring (added UNKNOWN_DBMS_VERSION instead of "Unknown")
This commit is contained in:
parent
b4450c6ddd
commit
a19cb2c13a
6 changed files with 13 additions and 6 deletions
|
|
@ -25,6 +25,7 @@ from lib.core.settings import MSSQL_ALIASES
|
|||
from lib.core.settings import MYSQL_ALIASES
|
||||
from lib.core.settings import PGSQL_ALIASES
|
||||
from lib.core.settings import ORACLE_ALIASES
|
||||
from lib.core.settings import UNKNOWN_DBMS_VERSION
|
||||
|
||||
def safeFormatString(value):
|
||||
retVal = value
|
||||
|
|
@ -361,7 +362,7 @@ def resumeConfKb(expression, url, value):
|
|||
elif expression == "DBMS" and url == conf.url:
|
||||
dbms = unSafeFormatString(value[:-1])
|
||||
dbms = dbms.lower()
|
||||
dbmsVersion = ["Unknown"]
|
||||
dbmsVersion = [UNKNOWN_DBMS_VERSION]
|
||||
|
||||
logMsg = "resuming back-end DBMS '%s' " % dbms
|
||||
logMsg += "from session file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue