Flowdock
method

escape_skipping_slashes

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: CGI

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

escape_skipping_slashes(str) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb, line 5
    def self.escape_skipping_slashes(str)
      str = str.join('/') if str.respond_to? :join
      str.gsub(/([^ \/a-zA-Z0-9_.-])/) do
        "%#{$1.unpack('H2' * $1.bytesize).join('%').upcase}"
      end.tr(' ', '+')
    end
Register or log in to add new notes.