fix html escaping for UTF-8 module metadata
parent
c9473f8cbc
commit
0a3fe0c608
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
## Module Name
|
## Module Name
|
||||||
|
|
||||||
<%= Rex::Text.html_encode(items[:mod_fullname]) %>
|
<%= CGI::escapeHTML(items[:mod_fullname]) %>
|
||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ module Msf
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def normalize_authors(authors)
|
def normalize_authors(authors)
|
||||||
if authors.kind_of?(Array)
|
if authors.kind_of?(Array)
|
||||||
authors.collect { |a| "* #{Rex::Text.html_encode(a)}" } * "\n"
|
authors.collect { |a| "* #{CGI::escapeHTML(a)}" } * "\n"
|
||||||
else
|
else
|
||||||
authors
|
authors
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue