[wp-trac] [WordPress Trac] #7224: wp_get_http,
discover_pingback_server_uri does not consider HTTP chuck format
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 2 14:25:28 GMT 2008
#7224: wp_get_http, discover_pingback_server_uri does not consider HTTP chuck
format
---------------------+------------------------------------------------------
Reporter: lilyfan | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version: 2.6
Severity: major | Keywords: HTTP chuck
---------------------+------------------------------------------------------
wp_get_http() at wp-includes/functions.php, discover_pingback_server_uri()
at wp-includes/comment.php speaks HTTP with fcoskopen(), fputs(), fgets(),
fread(). But, thease codes does not consider HTTP chunk format.
If the server returns chunk format, received data will be malformed.
The chunk format is described in
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html
To handle chunk format, check Transfer-Encoding field in HTTP header, and
read chunk-size and the content.
--
Ticket URL: <http://trac.wordpress.org/ticket/7224>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list