git-svn-id: https://beef.googlecode.com/svn/trunk@718 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
scotty.b.brown@gmail.com
2011-01-25 22:27:27 +00:00
parent 2184df5418
commit 4be0f5e29a

View File

@@ -58,7 +58,7 @@ module BeEF
# verify the browser_plugins string is valid
def self.is_valid_browser_plugins?(str)
return false if not BeEF::Filter.is_non_empty_string?(str)
return false if str.length > 255
return false if str.length > 400
return (str =~ /[^\w\d\s()-.,;_!\302\256]/).nil? # \302\256 is the (r) character
end