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:
parent
6108dcefba
commit
0f23b44ef0
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue