mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 10:44:20 +02:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10446] Pass $config and $user via parameter to anti_abuse_headers(). [ticket/10446] Remove leftover $headers parameter from anti_abuse_headers(). [ticket/10446] RFC2047 encode user/server names in X-AntiAbuse headers. [ticket/10446] DRY X-AntiAbuse header addition. Conflicts: phpBB/includes/ucp/ucp_register.php
This commit is contained in:
@@ -162,6 +162,22 @@ class messenger
|
||||
$this->extra_headers[] = trim($headers);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds X-AntiAbuse headers
|
||||
*
|
||||
* @param array $config Configuration array
|
||||
* @param user $user A user object
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function anti_abuse_headers($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']));
|
||||
$this->headers('X-AntiAbuse: User IP - ' . $user->ip);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the email priority
|
||||
*/
|
||||
|
Reference in New Issue
Block a user