Fix invalid version condition #3051

This commit is contained in:
zinduolis
2024-09-27 19:38:24 +10:00
parent aebc9949f6
commit 5d7fbe162c

View File

@@ -46,7 +46,7 @@ module BeEF
return false if has_non_printable_char?(str)
return true if str.eql? 'UNKNOWN'
return true if str.eql? 'ALL'
return false if !nums_only?(str) and !is_valid_float?(str)
return false if !nums_only?(str) and !str.match(/\b\d+(\.\d+)+\b/)
return false if str.length > 20
true