From c80acfc67bd824ae28540a02a87abd9d8c452022 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 2 Oct 2024 08:15:55 -0700 Subject: [PATCH 1/2] Increment version to 0.9.156. --- Rocksolid_Light/common/version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/common/version.txt b/Rocksolid_Light/common/version.txt index a22607f..b7b6c5d 100644 --- a/Rocksolid_Light/common/version.txt +++ b/Rocksolid_Light/common/version.txt @@ -1 +1 @@ -0.9.155 +0.9.156 From 5ebcf386266fa01b3c6968251677a7ef24c55009 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 2 Oct 2024 08:40:45 -0700 Subject: [PATCH 2/2] Use From: for posting hash for internal posts not using standard authentication. --- Rocksolid_Light/rocksolid/lib/post.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/lib/post.inc.php b/Rocksolid_Light/rocksolid/lib/post.inc.php index 30821fa..682828b 100644 --- a/Rocksolid_Light/rocksolid/lib/post.inc.php +++ b/Rocksolid_Light/rocksolid/lib/post.inc.php @@ -524,7 +524,11 @@ function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis = if (! isset($OVERRIDES['disable_rslight_headers']) || $OVERRIDES['disable_rslight_headers'] != true) { $sitekey = password_hash($CONFIG['thissitekey'] . $msgid, PASSWORD_DEFAULT); - $posting_user = hash('sha1', strtolower($authname) . $CONFIG['thissitekey'] . $_SERVER['HTTP_HOST']); + if ($authname) { + $posting_user = hash('sha1', strtolower($authname) . $CONFIG['thissitekey'] . $_SERVER['HTTP_HOST']); + } else { + $posting_user = hash('sha1', strtolower($from) . $CONFIG['thissitekey'] . $_SERVER['HTTP_HOST']); + } fputs($ns, 'X-Rslight-Site: ' . $sitekey . "\r\n"); fputs($ns, 'X-Rslight-Posting-User: ' . $posting_user . "\r\n"); if ($userconfig) {