From 5b6c025cc3b17fb67f225bee1e211f1aea06f180 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@20372 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 7212ae71a..6e88828ce 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 ); } /**