From 35cfb293e7c434b82b3d72b7f721c8a7594d1d5d Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 5 Apr 2012 15:17:34 +0000 Subject: [PATCH] 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 --- wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 7212ae71ad..6e88828cef 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -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 ); } /**