1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Accept ISO 8601 DisclosureDate with compatibility

Zalgo.
This commit is contained in:
William Vu 2018-11-16 12:03:01 -06:00
parent f25d7dbaa8
commit 2302acaab7

View File

@ -452,6 +452,12 @@ class Msftidy
]
error('Incorrect disclosure month format') if months.index(m).nil?
elsif d =~ /^\d{4}-\d{2}-\d{2}$/
begin
Date.iso8601(d)
rescue ArgumentError
error('Incorrect ISO 8601 disclosure date format')
end
else
error('Incorrect disclosure date format')
end