Merge branch 'devel'

This commit is contained in:
Retro_Guy 2024-10-02 08:41:24 -07:00
commit 3b9d2f05de
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
0.9.155
0.9.156

View File

@ -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);
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) {