Land #9490, Fix HTML escaping of Unicode in docs

4.x
Adam Cammack 2018-02-02 16:46:36 -06:00 committed by Jeffrey Martin
parent 1fdc4bdabb
commit e82ff28374
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
## Module Name
<%= Rex::Text.html_encode(items[:mod_fullname]) %>
<%= CGI::escapeHTML(items[:mod_fullname]) %>
## Authors
@ -47,4 +47,4 @@ No options required.
## Basic Usage
<%= normalize_demo_output(items[:mod_demo]) %>
<%= normalize_demo_output(items[:mod_demo]) %>

View File

@ -183,7 +183,7 @@ module Msf
# @return [String]
def normalize_authors(authors)
if authors.kind_of?(Array)
authors.collect { |a| "* #{Rex::Text.html_encode(a)}" } * "\n"
authors.collect { |a| "* #{CGI::escapeHTML(a)}" } * "\n"
else
authors
end