Commit d9af551c authored by Robert Lyon's avatar Robert Lyon
Browse files

Cookie lacking "secure" flag for HTTPS sites (Bug #1384009)

Change-Id: I1a175c9eba4acea2902bbbd10050322eaff69cf5
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 92bc78ca
......@@ -1581,7 +1581,7 @@ function set_cookie($name, $value='', $expires=0, $access=false) {
// If Cookie Consent is enabled with cc_necessary cookie set to 'yes'
// or Cookie Consent is not enabled
if (empty($_COOKIE['cc_necessary']) || (isset($_COOKIE['cc_necessary']) && $_COOKIE['cc_necessary'] == 'yes')) {
setcookie($name, $value, $expires, $url['path'], $domain, false, true);
setcookie($name, $value, $expires, $url['path'], $domain, is_https(), true);
if ($access) { // View access cookies may be needed on this request
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment