mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 00:42:23 +01:00
20 lines
457 B
Python
20 lines
457 B
Python
#!/usr/bin/env python
|
|
|
|
"""
|
|
$Id$
|
|
|
|
Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
|
|
See the file 'doc/COPYING' for copying permission
|
|
"""
|
|
|
|
class Unescaper:
|
|
def __init__(self):
|
|
self.__unescaper = None
|
|
|
|
def setUnescape(self, unescapeFunction):
|
|
self.__unescaper = unescapeFunction
|
|
|
|
def unescape(self, expression, quote=True):
|
|
return self.__unescaper(expression, quote=quote)
|
|
|
|
unescaper = Unescaper()
|