mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
parent
9fcc39e0ba
commit
a952a400ca
@ -414,7 +414,23 @@ class Url
|
|||||||
return $this->getBasePath();
|
return $this->getBasePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->getScheme() . '://' . $this->getHost() . ($this->getPort() ? (':' . $this->getPort()) : '');
|
$urlString = '';
|
||||||
|
if ($this->getScheme()) {
|
||||||
|
$urlString .= $this->getScheme() . '://';
|
||||||
|
}
|
||||||
|
if ($this->getPassword()) {
|
||||||
|
$urlString .= $this->getUsername() . ':' . $this->getPassword() . '@';
|
||||||
|
} elseif ($this->getUsername()) {
|
||||||
|
$urlString .= $this->getUsername() . '@';
|
||||||
|
}
|
||||||
|
if ($this->getHost()) {
|
||||||
|
$urlString .= $this->getHost();
|
||||||
|
}
|
||||||
|
if ($this->getPort()) {
|
||||||
|
$urlString .= ':' . $this->getPort();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $urlString;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user