Only write posting-user to config if auth used.
This commit is contained in:
parent
62c75e8b4f
commit
f6b80489fd
|
@ -527,8 +527,10 @@ function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis =
|
||||||
$posting_user = hash('sha1', strtolower($authname) . $CONFIG['thissitekey'] . $_SERVER['HTTP_HOST']);
|
$posting_user = hash('sha1', strtolower($authname) . $CONFIG['thissitekey'] . $_SERVER['HTTP_HOST']);
|
||||||
fputs($ns, 'X-Rslight-Site: ' . $sitekey . "\r\n");
|
fputs($ns, 'X-Rslight-Site: ' . $sitekey . "\r\n");
|
||||||
fputs($ns, 'X-Rslight-Posting-User: ' . $posting_user . "\r\n");
|
fputs($ns, 'X-Rslight-Posting-User: ' . $posting_user . "\r\n");
|
||||||
|
if ($userconfig) {
|
||||||
set_user_config($authname, 'posting-user', $posting_user);
|
set_user_config($authname, 'posting-user', $posting_user);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($encryptthis)) {
|
if (isset($encryptthis)) {
|
||||||
fputs($ns, 'X-Rslight-To: ' . $encryptto . "\r\n");
|
fputs($ns, 'X-Rslight-To: ' . $encryptto . "\r\n");
|
||||||
|
@ -634,4 +636,3 @@ function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis =
|
||||||
}
|
}
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
Loading…
Reference in New Issue