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
radiant-0.7.2 vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
nbudin-castronaut-0.7.5 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activesupport/pkg/activesupport-2.2.2/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
factorylabs-castronaut-0.7.5 vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
activesupport-2.2.3 lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
activesupport-1.2.2 lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
activesupport-1.2.3 lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
activesupport-1.1.1 lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
activesupport-2.0.0 lib/active_support/core_ext/cgi/escape_skipping_slashes.rb