Method: Rack::Auth::Digest::Params.dequote
- Defined in:
- lib/gems/rack-0.9.1/lib/rack/auth/digest/params.rb
.dequote(str) ⇒ Object
From WEBrick::HTTPUtils
14 15 16 17 18 |
# File 'lib/gems/rack-0.9.1/lib/rack/auth/digest/params.rb', line 14 def self.dequote(str) # From WEBrick::HTTPUtils ret = (/\A"(.*)"\Z/ =~ str) ? $1 : str.dup ret.gsub!(/\\(.)/, "\\1") ret end |