mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 16:24:25 +03:00
minor fix (database and/or table names with - sign inside needs to be escaped by ` character or will lead to a "SQL syntax")
This commit is contained in:
parent
dce9a762f1
commit
7b9d978cf9
|
@ -1131,6 +1131,12 @@ class Enumeration:
|
||||||
|
|
||||||
rootQuery = queries[kb.dbms].dump_table
|
rootQuery = queries[kb.dbms].dump_table
|
||||||
|
|
||||||
|
if kb.dbms == DBMS.MYSQL:
|
||||||
|
if '-' in conf.tbl:
|
||||||
|
conf.tbl = "`%s`" % conf.tbl
|
||||||
|
if '-' in conf.db:
|
||||||
|
conf.db = "`%s`" % conf.db
|
||||||
|
|
||||||
if conf.col:
|
if conf.col:
|
||||||
colList = conf.col.split(",")
|
colList = conf.col.split(",")
|
||||||
kb.data.cachedColumns[conf.db] = {}
|
kb.data.cachedColumns[conf.db] = {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user