@@ -2089,38 +2089,3 @@ def openFile(filename, mode='r'):
20892089 ('w' in mode or 'a' in mode or '+' in mode ) else "read" )
20902090 errMsg += "and that it's not locked by another process."
20912091 raise sqlmapFilePathException , errMsg
2092-
2093- def __configUnionChar (char ):
2094- if char .isdigit () or char == "NULL" :
2095- conf .uChar = char
2096- elif not char .startswith ("'" ) or not char .endswith ("'" ):
2097- conf .uChar = "'%s'" % char
2098-
2099- def __configUnionCols (columns ):
2100- if "-" not in columns or len (columns .split ("-" )) != 2 :
2101- raise sqlmapSyntaxException , "--union-cols must be a range with hyphon (e.g. 1-10)"
2102-
2103- columns = columns .replace (" " , "" )
2104- conf .uColsStart , conf .uColsStop = columns .split ("-" )
2105-
2106- if not conf .uColsStart .isdigit () or not conf .uColsStop .isdigit ():
2107- raise sqlmapSyntaxException , "--union-cols must be a range of integers"
2108-
2109- conf .uColsStart = int (conf .uColsStart )
2110- conf .uColsStop = int (conf .uColsStop )
2111-
2112- if conf .uColsStart > conf .uColsStop :
2113- errMsg = "--union-cols range has to be from lower to "
2114- errMsg += "higher number of columns"
2115- raise sqlmapSyntaxException , errMsg
2116-
2117- def configUnion (char , columns ):
2118- if isinstance (conf .uChar , basestring ):
2119- __configUnionChar (conf .uChar )
2120- elif isinstance (char , basestring ):
2121- __configUnionChar (char )
2122-
2123- if isinstance (conf .uCols , basestring ):
2124- __configUnionCols (conf .uCols )
2125- elif isinstance (columns , basestring ):
2126- __configUnionCols (columns )
0 commit comments