method

sanitize_string

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Permissions
sanitize_string(host) 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/host_authorization.rb, line 48
        def sanitize_string(host)
          if host.start_with?(".")
            /\A(.+\.)?#{Regexp.escape(host[1..-1])}\z/
          else
            host
          end
        end
Register or log in to add new notes.