mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/10446] Pass $config and $user via parameter to anti_abuse_headers().
PHPBB3-10446
This commit is contained in:
@@ -164,11 +164,14 @@ class messenger
|
||||
|
||||
/**
|
||||
* Adds X-AntiAbuse headers
|
||||
*
|
||||
* @param array $config Configuration array
|
||||
* @param user $user A user object
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function anti_abuse_headers()
|
||||
function anti_abuse_headers($config, $user)
|
||||
{
|
||||
global $config, $user;
|
||||
|
||||
$this->headers('X-AntiAbuse: Board servername - ' . mail_encode($config['server_name']));
|
||||
$this->headers('X-AntiAbuse: User_id - ' . $user->data['user_id']);
|
||||
$this->headers('X-AntiAbuse: Username - ' . mail_encode($user->data['username']));
|
||||
|
Reference in New Issue
Block a user