Project

General

Profile

« Previous | Next » 

Revision 0b03b9bd

Added by Shlomi Zadok about 9 years ago

fixes #10275 - Add secure cookie when in ssl (CVE-2015-3155)

View differences:

app/assets/javascripts/host_checkbox.js
addHostId(cid);
else
rmHostId(cid);
$.cookie($.cookieName, JSON.stringify($.foremanSelectedHosts));
$.cookie($.cookieName, JSON.stringify($.foremanSelectedHosts), { secure: location.protocol === 'https:' });
toggle_actions();
update_counter();
return false;

Also available in: Unified diff