Commit 5c9a6ccb authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

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

parents aca61905 dfbb1197
......@@ -1644,7 +1644,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
Supports Markdown
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