From e6da9729c051f257121a3f3de7c4564ad18b43bb Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 3 Nov 2010 15:31:28 +0000 Subject: [PATCH] Handle invalid dates git-svn-id: file:///home/svn/framework3/trunk@10888 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/module.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/msf/core/module.rb b/lib/msf/core/module.rb index f5bda879d5..709ceade55 100644 --- a/lib/msf/core/module.rb +++ b/lib/msf/core/module.rb @@ -305,8 +305,7 @@ class Module # Returns the disclosure date, if known. # def disclosure_date - date_str = module_info['DisclosureDate'] - date_str ? Date.parse(date_str) : nil + date_str = Date.parse(module_info['DisclosureDate'].to_s) rescue nil end #