mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Handle trackback URIs containing query strings. http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000066
git-svn-id: http://svn.automattic.com/wordpress/trunk@1461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b67063554d
commit
a166bd1267
@ -525,7 +525,7 @@ function trackback($trackback_url, $title, $excerpt, $ID) {
|
||||
$url = urlencode(get_permalink($ID));
|
||||
$query_string = "title=$title&url=$url&blog_name=$blog_name&excerpt=$excerpt";
|
||||
$trackback_url = parse_url($trackback_url);
|
||||
$http_request = 'POST ' . $trackback_url['path'] . $trackback_url['query'] . " HTTP/1.0\r\n";
|
||||
$http_request = 'POST ' . $trackback_url['path'] . ($trackback_url['query'] ? '?'.$trackback_url['query'] : '') . " HTTP/1.0\r\n";
|
||||
$http_request .= 'Host: '.$trackback_url['host']."\r\n";
|
||||
$http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_settings('blog_charset')."\r\n";
|
||||
$http_request .= 'Content-Length: '.strlen($query_string)."\r\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user