Update StatusUpdater.class.php
parent
21f3158334
commit
8543581972
|
@ -182,15 +182,11 @@ class StatusUpdater {
|
||||||
*
|
*
|
||||||
* Need php_http.dll extensions but might be a better tool for the job
|
* Need php_http.dll extensions but might be a better tool for the job
|
||||||
* http://stackoverflow.com/questions/14056977/function-http-build-url
|
* http://stackoverflow.com/questions/14056977/function-http-build-url
|
||||||
|
// Sets port number
|
||||||
$this->server['ip'] = http_build_url($this->server['ip'],
|
$url['port'] = (isset($url['port']) ? $url['port'] : $this->server['port'])
|
||||||
array(
|
// Update Server[ip]
|
||||||
"scheme" => $url['scheme'],
|
$this->server['ip'] = http_build_url('', $url);
|
||||||
"host" => (psm_validate_ipv6($url['host']) ? '['. $url['host'] .']' : $url['host']),
|
|
||||||
"port" => $this->server['port'],
|
|
||||||
"path" => (isset($url['path']) ? $url['path'] : ''),
|
|
||||||
"query" => (isset($url['query']) ? '?'.$url['query'] : '')
|
|
||||||
), HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT);
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// We're only interested in the header, because that should tell us plenty!
|
// We're only interested in the header, because that should tell us plenty!
|
||||||
|
|
Loading…
Reference in New Issue