From 40c083b89405fc907b19c429fce0a4629746ce4c Mon Sep 17 00:00:00 2001 From: Adam Cammack Date: Wed, 24 Apr 2019 09:30:38 -0500 Subject: [PATCH] Force UTF-8 for more module fields --- lib/msf/core/modules/metadata/obj.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/msf/core/modules/metadata/obj.rb b/lib/msf/core/modules/metadata/obj.rb index 6b9dac01c0..3916d1c696 100644 --- a/lib/msf/core/modules/metadata/obj.rb +++ b/lib/msf/core/modules/metadata/obj.rb @@ -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