diff --git a/lib/filter/command.rb b/lib/filter/command.rb index 34027bc61..20de61c5e 100644 --- a/lib/filter/command.rb +++ b/lib/filter/command.rb @@ -40,7 +40,7 @@ module BeEF # check for word and some punc chars def self.has_valid_key_chars?(str) return false if not BeEF::Filter.is_non_empty_string?(str) - (str =~ /[^\w\d\s()-.,;_\302\256]/).nil? + (str =~ /[^\w\d\s()-.,;_\302\256]/).nil? # \302\256 is the (r) character end # check for word and underscore chars