method

escape_glob_chars

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: FileHandler
escape_glob_chars(path) public

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 42
    def escape_glob_chars(path)
      path.force_encoding('binary') if path.respond_to? :force_encoding
      path.gsub(/[*?{}\[\]]/, "\\\\\\&")
    end
Register or log in to add new notes.