mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Centralization of unescape()
This commit is contained in:
parent
e734efcda7
commit
9770db597e
2 changed files with 12 additions and 58 deletions
|
|
@ -14,10 +14,14 @@ class Unescaper(advancedDict):
|
|||
def unescape(self, expression, quote=True, dbms=None):
|
||||
identifiedDbms = backend.getIdentifiedDbms()
|
||||
|
||||
if identifiedDbms is not None:
|
||||
return self[identifiedDbms](expression, quote=quote)
|
||||
if not expression:
|
||||
return expression
|
||||
elif "WAITFOR DELAY " in expression:
|
||||
return expression
|
||||
elif dbms is not None:
|
||||
return self[dbms](expression, quote=quote)
|
||||
elif identifiedDbms is not None:
|
||||
return self[identifiedDbms](expression, quote=quote)
|
||||
else:
|
||||
return expression
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue