Exploit databaseDownload repository ZIP
GH-08b4e46992fde5efb0a6e5e3983b5d84
jas502n/cve-2019-12384
Sources for CVE-2019-12384
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files36
jas502n/cve-2019-12384Revision 20605173b861
- ↑..Parent directory
- attr_changer.rb
- attr_span.rb
- attribute_manager.rb
- attributes.rb
- blank_line.rb
- block_quote.rb
- document.rb
- formatter.rb
- formatter_test_case.rb
- hard_break.rb
- heading.rb
- include.rb
- indented_paragraph.rb
- inline.rb
- list.rb
- list_item.rb
- paragraph.rb
- parser.rb
- pre_process.rb
- raw.rb
- rule.rb
- special.rb
- text_formatter_test_case.rb
- to_ansi.rb
- to_bs.rb
- to_html.rb
- to_html_crossref.rb
- to_html_snippet.rb
- to_joined_paragraph.rb
- to_label.rb
- to_markdown.rb
- to_rdoc.rb
- to_table_of_contents.rb
- to_test.rb
- to_tt_only.rb
- verbatim.rb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
jruby-9.2.7.0/lib/ruby/stdlib/rdoc/markup/heading.rb
Ruby · 1,515 bytes# frozen_string_literal: true
##
# A heading with a level (1-6) and text
RDoc::Markup::Heading =
Struct.new :level, :text do
@to_html = nil
@to_label = nil
##
# A singleton RDoc::Markup::ToLabel formatter for headings.
def self.to_label
@to_label ||= RDoc::Markup::ToLabel.new
end
##
# A singleton plain HTML formatter for headings. Used for creating labels
# for the Table of Contents
def self.to_html
return @to_html if @to_html
markup = RDoc::Markup.new
markup.add_special RDoc::CrossReference::CROSSREF_REGEXP, :CROSSREF
@to_html = RDoc::Markup::ToHtml.new nil
def @to_html.handle_special_CROSSREF special
special.text.sub(/^\\/, '')
end
@to_html
end
##
# Calls #accept_heading on +visitor+
def accept visitor
visitor.accept_heading self
end
##
# An HTML-safe anchor reference for this header.
def aref
"label-#{self.class.to_label.convert text.dup}"
end
##
# Creates a fully-qualified label which will include the label from
# +context+. This helps keep ids unique in HTML.
def label context = nil
label = aref
label = [context.aref, label].compact.join '-' if
context and context.respond_to? :aref
label
end
##
# HTML markup of the text of this label without the surrounding header
# element.
def plain_html
self.class.to_html.to_html(text.dup)
end
def pretty_print q # :nodoc:
q.group 2, "[head: #{level} ", ']' do
q.pp text
end
end
end