Sha256: 6c0caea71d56511cd4ac2512dfbe9fe4303df2bb59548374fb9e86b503e7a323
Contents?: true
Size: 697 Bytes
Versions: 20
Compression:
Stored size: 697 Bytes
Contents
module ActionDispatch module Http module FilterRedirect FILTERED = "[FILTERED]".freeze # :nodoc: def filtered_location # :nodoc: if location_filter_match? FILTERED else location end end private def location_filters if request request.get_header("action_dispatch.redirect_filter") || [] else [] end end def location_filter_match? location_filters.any? do |filter| if String === filter location.include?(filter) elsif Regexp === filter location =~ filter end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems