Skip to content

Commit fdd6075

Browse files
committed
temporary patch to fix UNION query enumeration
1 parent 92ea884 commit fdd6075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/core/agent.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
130130
retVal = paramString.replace(origValue, self.addPayloadDelimiters(newValue))
131131
else:
132132
retVal = paramString.replace("%s=%s" % (parameter, origValue),
133-
"%s=%s" % (parameter, self.addPayloadDelimiters(newValue)))
133+
"%s=%s" % (parameter, self.addPayloadDelimiters(newValue)))
134134

135135
return retVal
136136

@@ -391,7 +391,7 @@ def nullCastConcatFields(self, fields):
391391
elif depth == 0 and char == ',':
392392
commas.append(index)
393393
commas = sorted(commas)
394-
fieldsSplitted = [fields[x:y] for (x, y) in zip(commas, commas[1:])]
394+
fieldsSplitted = [fields[x:y].strip(",") for (x, y) in zip(commas, commas[1:])]
395395
dbmsDelimiter = queries[Backend.getIdentifiedDbms()].delimiter.query
396396
nulledCastedFields = []
397397

0 commit comments

Comments
 (0)