Make WordPress Core


Ignore:
Timestamp:
06/24/2008 10:19:27 PM (16 years ago)
Author:
ryan
Message:

SSL fixes. see #7001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/async-upload.php

    r8023 r8190  
    1111
    1212// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
    13 if ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
     13if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
     14    $_COOKIE[SECURE_AUTH_COOKIE] = $_REQUEST['auth_cookie'];
     15elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
    1416    $_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
    1517unset($current_user);
Note: See TracChangeset for help on using the changeset viewer.