Commit 8f6e5e72 authored by mikeytown2's avatar mikeytown2

#1022268: Fix minor domain access issue with empty aliases.

parent 4929359a
......@@ -1146,7 +1146,8 @@ function boost_get_base_urls(&$node, $reset = FALSE) {
}
if (is_array($domain['aliases'])) {
foreach ($domain['aliases'] as $alias) {
if ($alias['redirect'] != 1) {
$alias['pattern'] = trim($alias['pattern']);
if ($alias['redirect'] != 1 && !empty($alias['pattern'])) {
$temp_domain = array('scheme' => $domain['scheme'], 'subdomain' => $alias['pattern']);
$base_urls[$domain_id][] = domain_get_path($temp_domain);
}
......
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