Skip to content

Commit

Permalink
Issue #2979542 by AndKar: Drupal 8 sub-sites gets error message: ”The…
Browse files Browse the repository at this point in the history
… provided host name is not valid for this server”
  • Loading branch information
AndKar authored and helmo committed Jul 12, 2018
1 parent e5b578a commit 8ed8b8b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -173,7 +173,7 @@
$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";
}
?>
Expand Down

0 comments on commit 8ed8b8b

Please sign in to comment.