1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 15:17:16 +01:00

Fixed malformed URL in Emails

git-svn-id: file:///svn/phpbb/trunk@2177 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt 2002-02-17 16:42:06 +00:00
parent 3d0e0d2ea3
commit c8b89ff92b

View File

@ -60,12 +60,12 @@ $start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) :
//
// Set default email variables
//
$script_name = preg_replace("/^(\/)(.*?)(\/)$/", "\\2", $board_config['script_path']) . '/profile.'.$phpEx;
$script_name = preg_replace("/^(\/)(.*?)(\/)$/", "\\2", $board_config['script_path']) . '/groupcp.'.$phpEx;
$server_name = $board_config['server_name'];
$server_protocol = ( $board_config['cookie_secure'] ) ? "https://" : "http://";
$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . $board_config['server_port'] . '/' : '/';
$server_url = $server_protocol . $script_name . $server_name . $server_port;
$server_url = $server_protocol . $server_name . $server_port . $script_name;
//
// Default var values