﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
19922,Cookie urlencoding in getHeaderValue method of WP_Http_Cookie confuses servers,pw201,westi,"WP_Http_Cookie calls [http://php.net/manual/en/function.urlencode.php urlencode] on cookie values before they're used in the Cookie header in the HTTP request. This produces interoperability problems with servers which don't perform the corresponding decode. [http://stackoverflow.com/a/1969339 This Stack Overflow article] says that the RFC specifying that these values should be encoded is not well adopted, and that browsers don't follow it.

I found this while looking into why the LiveJournal importer now fails to import comments. I think LJ changed their cookie formats a while ago. The session cookies now contain colons and forward slashes. Both of these are encoded by the WP core code, resulting in the cookie not being recognised by LJ's server. 

Removing the call to urlencode in getHeaderValue allows the import to complete. A better fix would probably be to only encode non-printable characters, I suppose.",defect (bug),closed,normal,3.4,HTTP,2.8,normal,fixed,has-patch dev-feedback,kpayne@… daryl@… yoav@…
