2013-02-14 15:32:17 +04:00
|
|
|
#!/usr/bin/env python
|
2010-08-30 17:29:19 +04:00
|
|
|
|
|
|
|
"""
|
2016-01-06 02:06:12 +03:00
|
|
|
Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/)
|
2010-10-15 03:18:29 +04:00
|
|
|
See the file 'doc/COPYING' for copying permission
|
2010-08-30 17:29:19 +04:00
|
|
|
"""
|
|
|
|
|
|
|
|
from plugins.generic.syntax import Syntax as GenericSyntax
|
|
|
|
|
|
|
|
class Syntax(GenericSyntax):
|
|
|
|
def __init__(self):
|
|
|
|
GenericSyntax.__init__(self)
|
|
|
|
|
|
|
|
@staticmethod
|
2013-01-18 19:10:34 +04:00
|
|
|
def escape(expression, quote=True):
|
2013-03-11 17:58:05 +04:00
|
|
|
"""
|
|
|
|
>>> Syntax.escape("SELECT 'abcdefgh' FROM foobar")
|
|
|
|
"SELECT 'abcdefgh' FROM foobar"
|
|
|
|
"""
|
|
|
|
|
2010-08-30 17:29:19 +04:00
|
|
|
return expression
|