From 0f23b44ef026fcc5e835230f184eb7b7fa643c2b Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 22 May 2024 05:33:03 -0700 Subject: [PATCH] Handle X-Face: header properly when a user creates an x-face of just spaces (Don't add the header). --- Rocksolid_Light/rocksolid/lib/post.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/lib/post.inc.php b/Rocksolid_Light/rocksolid/lib/post.inc.php index f13cf92..4d746b0 100644 --- a/Rocksolid_Light/rocksolid/lib/post.inc.php +++ b/Rocksolid_Light/rocksolid/lib/post.inc.php @@ -572,7 +572,7 @@ function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis = $body .= "\r\n--------------" . $boundary . "\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"); } if ($do_attach) {