use the correct variable for cookie expiration

bug/bundler_fix
Brent Cook 2016-05-24 07:16:55 -05:00
parent e382b2e468
commit 3bc020178f
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ module Msf
if datastore['CookieExpiration'].present? if datastore['CookieExpiration'].present?
expires_date = (DateTime.now + 365*datastore['CookieExpiration'].to_i) expires_date = (DateTime.now + 365*datastore['CookieExpiration'].to_i)
expires_str = expires_date.to_time.strftime("%a, %d %b %Y 12:00:00 GMT") expires_str = expires_date.to_time.strftime("%a, %d %b %Y 12:00:00 GMT")
cookie << " Expires=#{expires};" cookie << " Expires=#{expires_str};"
end end
cookie cookie
end end