Sha256: f90fd2d2ffd7dd85c3bbf843907c53d58c6a8ba4c47b6b240829e762cb474e9d

Contents?: true

Size: 812 Bytes

Versions: 25

Compression:

Stored size: 812 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 %w[
                                           href
                                           action
                                           src
                                           name
                                         ]
    BROKEN_ESCAPING_ATTRIBUTES_QUALIFYING_TAG = { "name" => "a" }
  end
end

Version data entries

25 entries across 23 versions & 4 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/loofah-2.15.0/lib/loofah/html5/libxml2_workarounds.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/loofah-2.18.0/lib/loofah/html5/libxml2_workarounds.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/loofah-2.15.0/lib/loofah/html5/libxml2_workarounds.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/loofah-2.18.0/lib/loofah/html5/libxml2_workarounds.rb
loofah-2.20.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.19.1 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.19.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.18.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.17.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.16.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.15.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.14.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.13.0 lib/loofah/html5/libxml2_workarounds.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/loofah-2.12.0/lib/loofah/html5/libxml2_workarounds.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/loofah-2.12.0/lib/loofah/html5/libxml2_workarounds.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/loofah-2.10.0/lib/loofah/html5/libxml2_workarounds.rb
loofah-2.12.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.11.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.10.0 lib/loofah/html5/libxml2_workarounds.rb
loofah-2.9.1 lib/loofah/html5/libxml2_workarounds.rb