method

clean_path

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: FileHandler
clean_path(path_info) private

No documentation

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

Hide source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 183
      def clean_path(path_info)
        path = ::Rack::Utils.unescape_path path_info.chomp("/")
        if ::Rack::Utils.valid_path? path
          ::Rack::Utils.clean_path_info path
        end
      end
Register or log in to add new notes.