Skip to content

Commit 386a033

Browse files
authored
Missing port in welcome email (hestiacp#3784)
1 parent 30775f3 commit 386a033

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

web/add/user/index.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,9 @@
192192
if ($host == $hostname) {
193193
$port_is_defined = preg_match("/\[?[^]]*\]?:[0-9]{1,5}$/", $_SERVER["HTTP_HOST"]);
194194
if ($port_is_defined) {
195-
$port = preg_replace(
196-
"/(\[?[^]]*\]?):([0-9]{1,5})$/",
197-
"$2",
198-
$_SERVER["HTTP_HOST"],
199-
);
195+
$port =
196+
":" .
197+
preg_replace("/(\[?[^]]*\]?):([0-9]{1,5})$/", "$2", $_SERVER["HTTP_HOST"]);
200198
} else {
201199
$port = "";
202200
}

0 commit comments

Comments
 (0)