Method: Rex::Text.remove_badchars

Defined in:
lib/rex/text.rb

.remove_badchars(data, badchars = '') ⇒ Object

Removes bad characters from a string.

Modifies data in place

Parameters:

  • data (#delete)
  • badchars (String) (defaults to: '')

    A list of characters considered to be bad



1525
1526
1527
# File 'lib/rex/text.rb', line 1525

def self.remove_badchars(data, badchars = '')
  data.delete(badchars)
end