From eb6bce201278246799c539230b417c5057a1342f Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 5 May 2004 08:07:16 +0000 Subject: [PATCH] Allow ? in trackback URIs. git-svn-id: https://develop.svn.wordpress.org/trunk@1231 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 47e3517cbe..d1d267b66e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -551,7 +551,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']." HTTP/1.0\r\n"; + $http_request = 'POST ' . $trackback_url['path'] . $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'."\r\n"; $http_request .= 'Content-Length: '.strlen($query_string)."\r\n";