mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Code refactoring and cosmetics
This commit is contained in:
parent
a8d660db54
commit
1c86ec374e
7 changed files with 76 additions and 83 deletions
|
|
@ -12,6 +12,11 @@ from lib.core.datatype import advancedDict
|
|||
|
||||
class Unescaper(advancedDict):
|
||||
def unescape(self, expression, quote=True):
|
||||
return self[kb.dbms if kb.dbms else kb.misc.testedDbms](expression, quote=quote)
|
||||
if hasattr(kb, "dbms") and kb.dbms is not None:
|
||||
return self[kb.dbms if kb.dbms else kb.misc.testedDbms](expression, quote=quote)
|
||||
elif hasattr(kb.misc, "testedDbms") and kb.misc.testedDbms is not None:
|
||||
return self[kb.misc.testedDbms](expression, quote=quote)
|
||||
else:
|
||||
return expression
|
||||
|
||||
unescaper = Unescaper()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue