Sha256: e0cd89121f272489ad7134fff455bcc0b4c0eb2b83e6e9d5e02ccc463d85f06d

Contents?: true

Size: 605 Bytes

Versions: 26

Compression:

Stored size: 605 Bytes

Contents

# coding: utf-8
require 'set'

module Loofah
  #
  #  constants related to working around unhelpful libxml2 behavior
  #
  #  ಠ_ಠ
  #
  module LibxmlWorkarounds
    #
    #  these attributes and qualifying parent tags are determined by the code at:
    #
    #    https://git.gnome.org/browse/libxml2/tree/HTMLtree.c?h=v2.9.2#n714
    #
    #  see comments about CVE-2018-8048 within the tests for more information
    #
    BROKEN_ESCAPING_ATTRIBUTES = Set.new %w[
        href
        action
        src
        name
      ]
    BROKEN_ESCAPING_ATTRIBUTES_QUALIFYING_TAG = {"name" => "a"}
  end
end

Version data entries

26 entries across 19 versions & 4 rubygems

Version Path
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/loofah-2.3.0/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/loofah-2.3.1/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/loofah-2.3.0/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/loofah-2.3.1/lib/loofah/html5/libxml2_workarounds.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/loofah-2.3.1/lib/loofah/html5/libxml2_workarounds.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/loofah-2.3.1/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/loofah-2.3.1/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/loofah-2.3.0/lib/loofah/html5/libxml2_workarounds.rb
loofah-2.3.1 lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/loofah-2.3.0/lib/loofah/html5/libxml2_workarounds.rb
loofah-2.3.0 lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb
spiral_form-0.1.1 vendor/bundle/gems/loofah-2.2.3/lib/loofah/html5/libxml2_workarounds.rb