From bb82443224b9c12c819411fae63a6715e844b634 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 26 Jan 2022 08:00:34 +0000 Subject: [PATCH] Add X-Rslight-Posting-User to outgoing messages --- Rocksolid_Light/rocksolid/lib/post.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rocksolid_Light/rocksolid/lib/post.inc.php b/Rocksolid_Light/rocksolid/lib/post.inc.php index 9455716..fac810c 100644 --- a/Rocksolid_Light/rocksolid/lib/post.inc.php +++ b/Rocksolid_Light/rocksolid/lib/post.inc.php @@ -265,6 +265,7 @@ function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis=null,$e fputs($ns,'Newsgroups: '.$newsgroups."\r\n"); $sitekey=password_hash($CONFIG['thissitekey'].$msgid, PASSWORD_DEFAULT); fputs($ns,'X-Rslight-Site: '.$sitekey."\r\n"); + fputs($ns,'X-Rslight-Posting-User: '.hash('sha1', $from.$CONFIG['thissitekey'])."\r\n"); if(isset($encryptthis)) { fputs($ns,'X-Rslight-To: '.$encryptto."\r\n"); $CONFIG['postfooter']=""; @@ -367,6 +368,7 @@ function message_post_with_attachment($subject,$from,$newsgroups,$ref,$body,$enc } $sitekey=password_hash($CONFIG['thissitekey'].$msgid, PASSWORD_DEFAULT); fputs($ns,'X-Rslight-Site: '.$sitekey."\r\n"); + fputs($ns,'X-Rslight-Posting-User: '.hash('sha1', $from.$CONFIG['thissitekey'])."\r\n"); if(isset($encryptthis)) fputs($ns,'X-Rslight-To: '.$encryptto."\r\n"); fputs($ns,'From: '.$from."\r\n");