mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Fix for an Issue #119
This commit is contained in:
parent
cba77410a9
commit
231f0f76b5
|
@ -2447,7 +2447,7 @@ def getSortedInjectionTests():
|
|||
messages
|
||||
"""
|
||||
|
||||
retVal = conf.tests
|
||||
retVal = copy.deepcopy(conf.tests)
|
||||
|
||||
def priorityFunction(test):
|
||||
retVal = SORT_ORDER.FIRST
|
||||
|
|
|
@ -66,12 +66,16 @@ class AttribDict(dict):
|
|||
def __deepcopy__(self, memo):
|
||||
retVal = self.__class__()
|
||||
memo[id(self)] = retVal
|
||||
|
||||
for attr in dir(self):
|
||||
if not attr.startswith('_'):
|
||||
value = getattr(self, attr)
|
||||
if not isinstance(value, (types.BuiltinFunctionType, types.BuiltinFunctionType, types.FunctionType, types.MethodType)):
|
||||
setattr(retVal, attr, copy.deepcopy(value, memo))
|
||||
|
||||
for key, value in self.items():
|
||||
retVal.__setitem__(key, copy.deepcopy(value, memo))
|
||||
|
||||
return retVal
|
||||
|
||||
class InjectionDict(AttribDict):
|
||||
|
|
Loading…
Reference in New Issue
Block a user