Skip to content

Commit

Permalink
Some admin cookies were not setting secure appropriately. Needs tes…
Browse files Browse the repository at this point in the history
…ting.
  • Loading branch information
Mike Ems committed Jan 2, 2018
1 parent 339ec0a commit 90a86ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/WordPressHTTPS/Module/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@ public function set_cookie($cookie, $expire, $expiration, $user_id, $scheme) {
setcookie($cookie_name, $cookie, $expire, $cookie_path_site, $cookie_domain, $secure, true);
}
} else {
setcookie($cookie_name, $cookie, $expire, $cookie_path_plugins, $cookie_domain, false, true);
setcookie($cookie_name, $cookie, $expire, $cookie_path_admin, $cookie_domain, false, true);
setcookie($cookie_name, $cookie, $expire, $cookie_path_plugins, $cookie_domain, $secure, true);
setcookie($cookie_name, $cookie, $expire, $cookie_path_admin, $cookie_domain, $secure, true);
}
}

Expand Down

0 comments on commit 90a86ce

Please sign in to comment.