From 6210ddfbd6bb027926bb7b146cd3aa5c4f767002 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 22 Aug 2012 11:00:39 +0200 Subject: [PATCH] Minor refactoring --- lib/controller/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 6aa1e5aa7..d2fa57979 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -638,7 +638,7 @@ def heuristicCheckSqlInjection(place, parameter): if _ and _.isdigit(): randInt = int(randomInt()) - payload = "%s%s%s" % (prefix, "%s-%s" % (int(_) + randInt, randInt), suffix) + payload = "%s%s%s" % (prefix, "%d-%d" % (int(_) + randInt, randInt), suffix) payload = agent.payload(place, parameter, newValue=payload, where=PAYLOAD.WHERE.REPLACE) result = Request.queryPage(payload, place, raise404=False)