Sfoglia il codice sorgente

Missing port in welcome email (#3784)

Jaap Marcus 2 anni fa
parent
commit
386a0331bb
1 ha cambiato i file con 3 aggiunte e 5 eliminazioni
  1. 3 5
      web/add/user/index.php

+ 3 - 5
web/add/user/index.php

@@ -192,11 +192,9 @@ if (!empty($_POST["ok"])) {
 			if ($host == $hostname) {
 				$port_is_defined = preg_match("/\[?[^]]*\]?:[0-9]{1,5}$/", $_SERVER["HTTP_HOST"]);
 				if ($port_is_defined) {
-					$port = preg_replace(
-						"/(\[?[^]]*\]?):([0-9]{1,5})$/",
-						"$2",
-						$_SERVER["HTTP_HOST"],
-					);
+					$port =
+						":" .
+						preg_replace("/(\[?[^]]*\]?):([0-9]{1,5})$/", "$2", $_SERVER["HTTP_HOST"]);
 				} else {
 					$port = "";
 				}