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: https://develop.svn.wordpress.org/trunk@20372 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c16ba6d8c7
commit
35cfb293e7
@ -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
Block a user