[wp-trac] [WordPress Trac] #19922: Cookie urlencoding in getHeaderValue method of WP_Http_Cookie confuses servers

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 10 19:08:36 UTC 2012


#19922: Cookie urlencoding in getHeaderValue method of WP_Http_Cookie confuses
servers
------------------------------------+------------------------------
 Reporter:  pw201                   |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  HTTP                    |     Version:  2.8
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------
Changes (by dllh):

 * cc: daryl@… (added)


Comment:

 I was just looking at this exact issue (LJ and all). The solution I
 arrived at was to just apply a filter so that plugin developers (or
 whoever) can adjust headers as needed to suit their particular purposes.
 It's a smaller change to core but may also just sidestep the underlying
 problem. As the [http://curl.haxx.se/rfc/cookie_spec.html cookie spec]
 neither defines nor requires a particular encoding, I sort of hate to
 enforce a particular encoding within core, at least without allowing other
 code to modify it before using the cookie.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19922#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list