forked from wallabag/wallabag
Subdomain to domain failover left incorrect leading '.'. This has been remedied.
This commit is contained in:
@ -114,7 +114,7 @@ class SiteConfig
|
|||||||
$split = explode('.', $host);
|
$split = explode('.', $host);
|
||||||
if (count($split) > 1) {
|
if (count($split) > 1) {
|
||||||
array_shift($split);
|
array_shift($split);
|
||||||
$try[] = '.'.implode('.', $split);
|
$try[] = implode('.', $split);
|
||||||
}
|
}
|
||||||
foreach ($try as $h) {
|
foreach ($try as $h) {
|
||||||
if (array_key_exists($h, self::$config_cache)) {
|
if (array_key_exists($h, self::$config_cache)) {
|
||||||
@ -181,4 +181,4 @@ class SiteConfig
|
|||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user