Flowdock
method

contains_bad_protocols?

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: HTML::WhiteListSanitizer
contains_bad_protocols?(attr_name, value) protected

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_controller/vendor/html-scanner/html/sanitizer.rb, line 171
    def contains_bad_protocols?(attr_name, value)
      uri_attributes.include?(attr_name) &&
      (value =~ /(^[^\/:]*):|(&#0*58)|(&#x70)|(%|%)3A/ && !allowed_protocols.include?(value.split(protocol_separator).first.downcase))
    end
Register or log in to add new notes.