From 29373682521cc62523284b759cbca22656e34993 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Mon, 17 Jul 2023 06:42:25 -0700 Subject: [PATCH] Remove debug line in post.inc.php and move User-Agent out of 'if' statement. --- Rocksolid_Light/rocksolid/lib/post.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Rocksolid_Light/rocksolid/lib/post.inc.php b/Rocksolid_Light/rocksolid/lib/post.inc.php index d8a693a..5d00b85 100755 --- a/Rocksolid_Light/rocksolid/lib/post.inc.php +++ b/Rocksolid_Light/rocksolid/lib/post.inc.php @@ -276,8 +276,8 @@ function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis=null,$e if($do_attach == null) { fputs($ns,"Content-Type: text/plain; charset=".$www_charset."; format=flowed\r\n"); fputs($ns,"Content-Transfer-Encoding: 8bit\r\n"); - fputs($ns,"User-Agent: Rocksolid Light ".$rslight_version."\r\n"); } + fputs($ns,"User-Agent: Rocksolid Light ".$rslight_version."\r\n"); if ($send_poster_host) @fputs($ns,'X-HTTP-Posting-Host: '.gethostbyaddr(getenv("REMOTE_ADDR"))."\r\n"); if (($ref!=false) && (count($ref)>0)) { @@ -344,8 +344,6 @@ function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis=null,$e } $body=rtrim($body); fputs($ns,"\r\n".$body."\r\n.\r\n"); - // DEBUG - file_put_contents('/var/spool/rslight/upload/body.txt', $body); $message=line_read($ns); nntp_close($ns); if($do_attach) {