Plugin Directory

Changeset 646381


Ignore:
Timestamp:
12/31/2012 01:14:15 PM (13 years ago)
Author:
misternifty
Message:

Added check to assure proper cookie string is set for remote fetch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debug-this/trunk/debug-this.php

    r646378 r646381  
    171171        $cookie_string = '';
    172172        foreach($_COOKIE as $k => $v)
    173             $cookie_string .= $k . '=' . urlencode($v) . '; ';
     173            if(preg_match('/(wordpress_test_cookie|wordpress_logged_in_|wp-settings-1|wp-settings-time-1)/', $k))
     174                $cookie_string .= $k . '=' . urlencode($v) . '; ';
    174175        $cookie_string = trim($cookie_string, '; ');
    175176        $headers = array(
Note: See TracChangeset for help on using the changeset viewer.