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:
parent
a682a7adaf
commit
5b6c025cc3
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue