From 526e1d28690d9f7f0dcd595092c09556a8a5ce3c Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Fri, 16 Aug 2013 14:58:51 +0200 Subject: [PATCH] upport --- include/functions_trackbacks.inc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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');