diff --git a/include/functions_trackbacks.inc.php b/include/functions_trackbacks.inc.php index 095e0b01..d5d271ad 100644 --- a/include/functions_trackbacks.inc.php +++ b/include/functions_trackbacks.inc.php @@ -120,14 +120,12 @@ function _serendipity_send($loc, $data, $contenttype = null) { } if ($target['scheme'] == 'https' && empty($target['port'])) { - $target['port'] = 443; - } - - if (!is_numeric($target['port'])) { + $uri = $target['scheme'] . '://' . $target['host'] . $target['path'] . $target['query']; + } elseif (!is_numeric($target['port'])) { $target['port'] = 80; + $uri = $target['scheme'] . '://' . $target['host'] . ':' . $target['port'] . $target['path'] . $target['query']; } - $uri = $target['scheme'] . '://' . $target['host'] . ':' . $target['port'] . $target['path'] . $target['query']; require_once S9Y_PEAR_PATH . 'HTTP/Request.php'; $options = array('allowRedirects' => true, 'maxRedirects' => 5, 'method' => 'POST'); serendipity_plugin_api::hook_event('backend_http_request', $options, 'trackback_send');