Commit 8ca2f22a authored by tbrehm's avatar tbrehm

Fixed bug in functions library.

parent ae6af9ea
......@@ -98,7 +98,7 @@ class functions {
public function get_ispconfig_url() {
$url = (stristr($_SERVER['SERVER_PROTOCOL'],'HTTPS'))?'https':'http';
$url .= '//'.$_SERVER['SERVER_NAME'];
$url .= '://'.$_SERVER['SERVER_NAME'];
if($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443) {
$url .= ':'.$_SERVER['SERVER_PORT'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment