Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8278d82

Browse files
committed
Another layout adjustment
1 parent 71d82e6 commit 8278d82

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

lib/controller/checks.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ def checkSqlInjection(place, parameter, value):
181181
logger.debug(debugMsg)
182182
continue
183183

184+
# Skip test if the user provided custom column
185+
# range and this is not a custom UNION test
186+
if conf.uCols is not None and hasattr(test.request, "columns") and test.request.columns != "[COLSTART]-[COLSTOP]":
187+
debugMsg = "skipping test '%s' because custom " % title
188+
debugMsg += "UNION columns range was provided"
189+
logger.debug(debugMsg)
190+
continue
191+
184192
infoMsg = "testing '%s'" % title
185193
logger.info(infoMsg)
186194

@@ -352,14 +360,6 @@ def checkSqlInjection(place, parameter, value):
352360
# test value for proper payload unescaping
353361
Backend.forceDbms(dbms)
354362

355-
# Skip test if the user provided custom column
356-
# range and this is not a custom UNION test
357-
if conf.uCols is not None and test.request.columns != "[COLSTART]-[COLSTOP]":
358-
debugMsg = "skipping test '%s' because custom " % title
359-
debugMsg += "UNION columns range was provided"
360-
logger.debug(debugMsg)
361-
continue
362-
363363
configUnion(test.request.char, test.request.columns)
364364

365365
if not Backend.getIdentifiedDbms():

0 commit comments

Comments
 (0)