WordPress.org

Make WordPress Core

Changeset 8810


Ignore:
Timestamp:
09/05/2008 12:10:34 AM (10 years ago)
Author:
ryan
Message:

No HTTPOnly for Safari

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r8808 r8810  
    634634    do_action('set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme);
    635635    do_action('set_logged_in_cookie', $logged_in_cookie, $expire, $expiration, $user_id, 'logged_in');
     636
     637    global $is_safari;
     638    // No HTTPOnly for Safari
     639    if ( $is_safari ) {
     640        setcookie($auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure);
     641        setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure);
     642        setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN);
     643        if ( COOKIEPATH != SITECOOKIEPATH )
     644            setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, SITECOOKIEPATH, COOKIE_DOMAIN);
     645        return;
     646    }
    636647
    637648    // Set httponly if the php version is >= 5.2.0
Note: See TracChangeset for help on using the changeset viewer.