Land #11771, Force UTF-8 for more module metadata fields

4.x
Brent Cook 2019-04-24 20:23:51 -05:00 committed by Metasploit
parent d42f29b681
commit 909cf10848
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 3 additions and 0 deletions

View File

@ -193,8 +193,11 @@ class Obj
end
def force_encoding(encoding)
@name.force_encoding(encoding)
@full_name.force_encoding(encoding)
@description.force_encoding(encoding)
@author.each {|a| a.force_encoding(encoding)}
@references.each {|r| r.force_encoding(encoding)}
end
end