File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3182,7 +3182,14 @@ def isNumPosStrValue(value):
3182
3182
False
3183
3183
"""
3184
3184
3185
- return ((hasattr (value , "isdigit" ) and value .isdigit () and int (value ) > 0 ) or (isinstance (value , int ) and value > 0 )) and int (value ) < MAX_INT
3185
+ retVal = False
3186
+
3187
+ try :
3188
+ retVal = ((hasattr (value , "isdigit" ) and value .isdigit () and int (value ) > 0 ) or (isinstance (value , int ) and value > 0 )) and int (value ) < MAX_INT
3189
+ except ValueError :
3190
+ pass
3191
+
3192
+ return retVal
3186
3193
3187
3194
@cachedmethod
3188
3195
def aliasToDbmsEnum (dbms ):
Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.7.8.9 "
23
+ VERSION = "1.7.8.10 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments