Handle X-Face: header properly when a user creates an x-face of just spaces (Don't add the header).

This commit is contained in:
Retro_Guy 2024-05-22 05:33:03 -07:00
parent 6108dcefba
commit 0f23b44ef0
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis =
$body .= "\r\n--------------" . $boundary . "\r\n"; $body .= "\r\n--------------" . $boundary . "\r\n";
} }
fputs($ns, 'Message-ID: ' . $msgid . "\r\n"); fputs($ns, 'Message-ID: ' . $msgid . "\r\n");
if ($userconfig['xface'] !== '' && $myconfig) { if (trim($userconfig['xface']) !== '' && $myconfig) {
fputs($ns, 'X-Face: ' . $userconfig['xface'] . "\r\n"); fputs($ns, 'X-Face: ' . $userconfig['xface'] . "\r\n");
} }
if ($do_attach) { if ($do_attach) {