mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[ticket/10446] RFC2047 encode user/server names in X-AntiAbuse headers.
PHPBB3-10446
This commit is contained in:
parent
64d62038cd
commit
c68973a9e0
@ -168,9 +168,9 @@ class messenger
|
|||||||
function anti_abuse_headers($headers)
|
function anti_abuse_headers($headers)
|
||||||
{
|
{
|
||||||
global $config, $user;
|
global $config, $user;
|
||||||
$this->headers('X-AntiAbuse: Board servername - ' . $config['server_name']);
|
$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: User_id - ' . $user->data['user_id']);
|
||||||
$this->headers('X-AntiAbuse: Username - ' . $user->data['username']);
|
$this->headers('X-AntiAbuse: Username - ' . mail_encode($user->data['username']));
|
||||||
$this->headers('X-AntiAbuse: User IP - ' . $user->ip);
|
$this->headers('X-AntiAbuse: User IP - ' . $user->ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user