From d3ddaba7be6a32e37771f9fbbe44532145da4d03 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 25 Jan 2011 13:04:13 +0000 Subject: [PATCH] minor refactoring --- lib/techniques/inband/union/use.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/techniques/inband/union/use.py b/lib/techniques/inband/union/use.py index 327d7d292..5019399d7 100644 --- a/lib/techniques/inband/union/use.py +++ b/lib/techniques/inband/union/use.py @@ -43,13 +43,13 @@ def configUnion(char=None, columns=None): raise sqlmapSyntaxException, "--union-cols must be a range with hyphon (e.g. 1-10)" columns = columns.replace(" ", "") - conf.uColsStart, conf.uColsStop = columns.split("-") + colsStart, colsStop = columns.split("-") - if not conf.uColsStart.isdigit() or not conf.uColsStop.isdigit(): + if not colsStart.isdigit() or not colsStop.isdigit(): raise sqlmapSyntaxException, "--union-cols must be a range of integers" - conf.uColsStart = int(conf.uColsStart) - conf.uColsStop = int(conf.uColsStop) + conf.uColsStart = int(colsStart) + conf.uColsStop = int(colsStop) if conf.uColsStart > conf.uColsStop: errMsg = "--union-cols range has to be from lower to "