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:
parent
f25d7dbaa8
commit
2302acaab7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user