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.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2012-04-05 15:17:34 +00:00
parent a682a7adaf
commit 5b6c025cc3
1 changed files with 1 additions and 1 deletions

View File

@ -1540,7 +1540,7 @@ class WP_Http_Cookie {
if ( empty( $this->name ) || empty( $this->value ) )
return '';
return $this->name . '=' . urlencode( $this->value );
return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this-name );
}
/**