mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-16 20:39:49 +02:00
Merge branch 'develop-ascraeus' into develop
This commit is contained in:
commit
06be2ff67d
@ -402,17 +402,9 @@ class messenger
|
|||||||
*/
|
*/
|
||||||
function generate_message_id()
|
function generate_message_id()
|
||||||
{
|
{
|
||||||
global $config;
|
global $config, $request;
|
||||||
|
|
||||||
$domain = 'phpbb.generated';
|
$domain = ($config['server_name']) ?: $request->server('SERVER_NAME', 'phpbb.generated');
|
||||||
if ($config['server_name'])
|
|
||||||
{
|
|
||||||
$domain = $config['server_name'];
|
|
||||||
}
|
|
||||||
else if (!empty($_SERVER['SERVER_NAME']))
|
|
||||||
{
|
|
||||||
$domain = $_SERVER['SERVER_NAME'];
|
|
||||||
}
|
|
||||||
|
|
||||||
return md5(unique_id(time())) . '@' . $domain;
|
return md5(unique_id(time())) . '@' . $domain;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user