From 4b848df266178de1e1f35e87576eb914d8361943 Mon Sep 17 00:00:00 2001 From: Constantine Kovalensky <45331093+kovalensky@users.noreply.github.com> Date: Thu, 21 Sep 2023 21:27:32 +0400 Subject: [PATCH] Support for IDN domains (#909) --- library/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/config.php b/library/config.php index 85cf3c037..66375deba 100644 --- a/library/config.php +++ b/library/config.php @@ -86,7 +86,7 @@ $bb_cfg['cache'] = [ $bb_cfg['datastore_type'] = 'filecache'; // 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['script_path'] = '/'; // The path where FORUM is located relative to the domain name