From 9aec568360335f212d3dbc0c6b0c3a7ba02c197b Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sat, 12 Mar 2022 02:45:48 +0000 Subject: [PATCH] Add domain to X-Rslight-Posting-User --- Rocksolid_Light/rocksolid/lib/post.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/rocksolid/lib/post.inc.php b/Rocksolid_Light/rocksolid/lib/post.inc.php index fac810c..e0e1453 100644 --- a/Rocksolid_Light/rocksolid/lib/post.inc.php +++ b/Rocksolid_Light/rocksolid/lib/post.inc.php @@ -265,7 +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"); + fputs($ns,'X-Rslight-Posting-User: '.hash('sha1', $from.$_SERVER['HTTP_HOST'].$CONFIG['thissitekey'])."\r\n"); if(isset($encryptthis)) { fputs($ns,'X-Rslight-To: '.$encryptto."\r\n"); $CONFIG['postfooter']=""; @@ -368,7 +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"); + fputs($ns,'X-Rslight-Posting-User: '.hash('sha1', $from.$_SERVER['HTTP_HOST'].$CONFIG['thissitekey'])."\r\n"); if(isset($encryptthis)) fputs($ns,'X-Rslight-To: '.$encryptto."\r\n"); fputs($ns,'From: '.$from."\r\n");