Sha256: 054dbaa1f8ad2a83a889502e1837620124f621aceaad355fb205f2aed854ac7b

Contents?: true

Size: 388 Bytes

Versions: 146

Compression:

Stored size: 388 Bytes

Contents

module ActiveSupport #:nodoc:
  module CoreExtensions #:nodoc:
    module CGI #:nodoc:
      module EscapeSkippingSlashes #:nodoc:
        def escape_skipping_slashes(str)
          str = str.join('/') if str.respond_to? :join
          str.gsub(/([^ \/a-zA-Z0-9_.-])/n) do
            "%#{$1.unpack('H2').first.upcase}"
          end.tr(' ', '+')
        end
      end
    end
  end
end

Version data entries

146 entries across 145 versions & 19 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
masover-castronaut-0.4.4.4 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
masover-castronaut-0.4.4.5 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
masover-castronaut-0.5.0.1 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
p8-castronaut-0.6.1.1 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.4.1 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.4.2 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.4.3 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.4.4 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.4.5 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.4.6 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.5.0 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.5.1 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.5.2 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.5.3 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.5.4 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.6.0 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.6.1 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.7.4 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
relevance-castronaut-0.7.5 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb