Skip to content

Commit d775c6c

Browse files
committed
Merge pull request #9 from todb-r7/pr4015-disclosure-fix
Pr4015 disclosure fix
2 parents f612c8c + e68aaa4 commit d775c6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/msf/base/serializer/readable_text.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def self.dump_exploit_module(mod, indent = '')
168168
output << " Privileged: " + (mod.privileged? ? "Yes" : "No") + "\n"
169169
output << " License: #{mod.license}\n"
170170
output << " Rank: #{mod.rank_to_s.capitalize}\n"
171-
output << " Disclosed: #{mod.disclosure_date}\n"
171+
output << " Disclosed: #{mod.disclosure_date}\n" if mod.disclosure_date
172172
output << "\n"
173173

174174
# Authors
@@ -224,7 +224,7 @@ def self.dump_auxiliary_module(mod, indent = '')
224224
output << " Module: #{mod.fullname}\n"
225225
output << " License: #{mod.license}\n"
226226
output << " Rank: #{mod.rank_to_s.capitalize}\n"
227-
output << " Disclosed: #{mod.disclosure_date}\n"
227+
output << " Disclosed: #{mod.disclosure_date}\n" if mod.disclosure_date
228228
output << "\n"
229229

230230
# Authors
@@ -270,7 +270,7 @@ def self.dump_post_module(mod, indent = '')
270270
output << " Platform: #{mod.platform_to_s}\n"
271271
output << " Arch: #{mod.arch_to_s}\n"
272272
output << " Rank: #{mod.rank_to_s.capitalize}\n"
273-
output << " Disclosed: #{mod.disclosure_date}\n"
273+
output << " Disclosed: #{mod.disclosure_date}\n" if mod.disclosure_date
274274
output << "\n"
275275

276276
# Authors

0 commit comments

Comments
 (0)