mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
introducing new style for copyright header
This commit is contained in:
parent
f07608ef4d
commit
d970e260b9
7 changed files with 44 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2006-2010 sqlmap project (http://sqlmap.sourceforge.net/)
|
||||
# See the file doc/COPYING for copying permission.
|
||||
|
||||
import re
|
||||
|
||||
from lib.core.convert import urldecode
|
||||
|
|
@ -8,6 +11,7 @@ from lib.core.convert import urlencode
|
|||
"""
|
||||
def tamper(place, value):
|
||||
retVal = value
|
||||
|
||||
if value:
|
||||
if place != "URI":
|
||||
value = urldecode(value)
|
||||
|
|
@ -21,16 +25,21 @@ def tamper(place, value):
|
|||
firstspace = True
|
||||
retVal += "/**/"
|
||||
continue
|
||||
|
||||
elif value[i] == '\'':
|
||||
qoute = not qoute
|
||||
|
||||
elif value[i] == '"':
|
||||
doublequote = not doublequote
|
||||
|
||||
elif value[i]==" " and not doublequote and not qoute:
|
||||
retVal += "/**/"
|
||||
continue
|
||||
|
||||
retVal += value[i]
|
||||
|
||||
if place != "URI":
|
||||
retVal = urlencode(retVal)
|
||||
|
||||
return retVal
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue