Method: Rex::Text.uri_decode
- Defined in:
- lib/rex/text.rb
.uri_decode(str) ⇒ Object
Decode a URI encoded string
861 862 863 |
# File 'lib/rex/text.rb', line 861 def self.uri_decode(str) str.gsub(/(%[a-z0-9]{2})/i){ |c| [c[1,2]].pack("H*") } end |