Commit 8ed8b8bf authored by AndKar's avatar AndKar Committed by helmo

Issue #2979542 by AndKar: Drupal 8 sub-sites gets error message: ”The provided...

Issue #2979542 by AndKar: Drupal 8 sub-sites gets error message: ”The provided host name is not valid for this server”
parent e5b578a8
......@@ -173,7 +173,7 @@ if (isset($_SERVER['db_name'])) {
$esc_uri = str_replace('.', '\.', $this->uri);
print " '^{$esc_uri}\$',\n";
foreach ($this->aliases as $alias_url) {
$esc_alias = str_replace('.', '\.', $alias_url);
$esc_alias = preg_replace(['/\./', '/\/.+/'], ['\.', ''], $alias_url);
print " '^{$esc_alias}\$',\n";
}
?>
......
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