Support for IDN domains (#909)

This commit is contained in:
Constantine Kovalensky 2023-09-21 21:27:32 +04:00 committed by GitHub
commit 4b848df266
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ $bb_cfg['cache'] = [
$bb_cfg['datastore_type'] = 'filecache'; $bb_cfg['datastore_type'] = 'filecache';
// Server // Server
$bb_cfg['server_name'] = $domain_name = !empty($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $reserved_name; $bb_cfg['server_name'] = $domain_name = !empty($_SERVER['SERVER_NAME']) ? idn_to_utf8($_SERVER['SERVER_NAME']) : $reserved_name;
$bb_cfg['server_port'] = !empty($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : $reserved_port; $bb_cfg['server_port'] = !empty($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : $reserved_port;
$bb_cfg['script_path'] = '/'; // The path where FORUM is located relative to the domain name $bb_cfg['script_path'] = '/'; // The path where FORUM is located relative to the domain name