upport
This commit is contained in:
@@ -120,14 +120,12 @@ function _serendipity_send($loc, $data, $contenttype = null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($target['scheme'] == 'https' && empty($target['port'])) {
|
if ($target['scheme'] == 'https' && empty($target['port'])) {
|
||||||
$target['port'] = 443;
|
$uri = $target['scheme'] . '://' . $target['host'] . $target['path'] . $target['query'];
|
||||||
}
|
} elseif (!is_numeric($target['port'])) {
|
||||||
|
|
||||||
if (!is_numeric($target['port'])) {
|
|
||||||
$target['port'] = 80;
|
$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';
|
require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
|
||||||
$options = array('allowRedirects' => true, 'maxRedirects' => 5, 'method' => 'POST');
|
$options = array('allowRedirects' => true, 'maxRedirects' => 5, 'method' => 'POST');
|
||||||
serendipity_plugin_api::hook_event('backend_http_request', $options, 'trackback_send');
|
serendipity_plugin_api::hook_event('backend_http_request', $options, 'trackback_send');
|
||||||
|
|||||||
Reference in New Issue
Block a user