Archived
1
0
This commit is contained in:
Garvin Hicking
2013-08-16 14:58:51 +02:00
parent 17aae92f7f
commit 526e1d2869
+3 -5
View File
@@ -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');