Sha256: f80fb41555a7cc6c2087594a236cc20a1bf38aae92ac33f2c17ad4e9ff4b90a1

Contents?: true

Size: 639 Bytes

Versions: 19

Compression:

Stored size: 639 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

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([
      "href",
      "action",
      "src",
      "name",
    ])
    BROKEN_ESCAPING_ATTRIBUTES_QUALIFYING_TAG = { "name" => "a" }
  end
end

Version data entries

19 entries across 18 versions & 7 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/loofah-2.23.1/lib/loofah/html5/libxml2_workarounds.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/loofah-2.23.1/lib/loofah/html5/libxml2_workarounds.rb
loofah-2.24.0 lib/loofah/html5/libxml2_workarounds.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/loofah-2.22.0/lib/loofah/html5/libxml2_workarounds.rb
loofah-2.23.1 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.23.0 lib/loofah/html5/libxml2_workarounds.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/loofah-2.22.0/lib/loofah/html5/libxml2_workarounds.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/html5/libxml2_workarounds.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/html5/libxml2_workarounds.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/html5/libxml2_workarounds.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/html5/libxml2_workarounds.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/lib/loofah/html5/libxml2_workarounds.rb
loofah-2.22.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.21.4 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.21.3 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.21.2 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.21.1 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.21.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.21.0.rc1 lib/loofah/html5/libxml2_workarounds.rb