Skip to content

Commit

Permalink
HTTP: Don't force cookie values to be urlencoded because it breaks us…
Browse files Browse the repository at this point in the history
…age 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
  • Loading branch information
westi committed Apr 5, 2012
1 parent a682a7a commit 5b6c025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-includes/class-http.php
Expand Up @@ -1540,7 +1540,7 @@ function getHeaderValue() {
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 );
}

/**
Expand Down

0 comments on commit 5b6c025

Please sign in to comment.