WordPress.org

Make WordPress Core

Changeset 20372


Ignore:
Timestamp:
04/05/12 15:17:34 (6 years ago)
Author:
westi
Message:

HTTP: Don't force cookie values to be urlencoded because it breaks usage of cookies in some scenarios like the LiveJournal Importer. Instead add a filter for a plugin to use if it really wants to have the cookie mangled. Fixes #19922 props pw201, dllh and kurtpayne.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r20370 r20372  
    15411541            return ''; 
    15421542 
    1543         return $this->name . '=' . urlencode( $this->value ); 
     1543        return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this-name ); 
    15441544    } 
    15451545 
Note: See TracChangeset for help on using the changeset viewer.