From 5d7fbe162ca1c18b9568d9f9d2006e82ed1b801b Mon Sep 17 00:00:00 2001 From: zinduolis Date: Fri, 27 Sep 2024 19:38:24 +1000 Subject: [PATCH] Fix invalid version condition #3051 --- core/filters/browser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/filters/browser.rb b/core/filters/browser.rb index 109e8a8ae..e26f4c1b7 100644 --- a/core/filters/browser.rb +++ b/core/filters/browser.rb @@ -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