1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Handle invalid dates

git-svn-id: file:///home/svn/framework3/trunk@10888 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-11-03 15:31:28 +00:00
parent b97cbff5af
commit e6da9729c0

View File

@ -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
#