Add:
- Code: Select all
// custom allow redirect across sub domains
$disable_cd_check = strpos($url_parts['host'], trim($config['cookie_domain'], '.')) !== false ? true : $disable_cd_check;
// custom
After :
- Code: Select all
if ($url_parts === false)
{
// Malformed url, redirect to current page...
$url = generate_board_url() . '/' . $user->page['page'];
}
else if (!empty($url_parts['scheme']) && !empty($url_parts['host']))
{
In includes/functions.php.
This code allow redirects across all sub-domains. It performs the check on the cookie domain because it should not mention the sub-domain and should be prefixed with a dot (".") (eg .example.com) to be usable across all sub domains.
So this only implies that you properly configured
phpBB Server and Cookie settings