Remove version number from 'User-Agent' header when posting.
This commit is contained in:
parent
34f3e621ac
commit
25bba4e9c1
|
@ -512,7 +512,7 @@ function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis =
|
||||||
fputs($ns, "Content-Type: text/plain; charset=" . $www_charset . "; format=flowed\r\n");
|
fputs($ns, "Content-Type: text/plain; charset=" . $www_charset . "; format=flowed\r\n");
|
||||||
fputs($ns, "Content-Transfer-Encoding: 8bit\r\n");
|
fputs($ns, "Content-Transfer-Encoding: 8bit\r\n");
|
||||||
}
|
}
|
||||||
fputs($ns, "User-Agent: Rocksolid Light " . $rslight_version . "\r\n");
|
fputs($ns, "User-Agent: Rocksolid Light\r\n");
|
||||||
if ($send_poster_host)
|
if ($send_poster_host)
|
||||||
@fputs($ns, 'X-HTTP-Posting-Host: ' . gethostbyaddr(getenv("REMOTE_ADDR")) . "\r\n");
|
@fputs($ns, 'X-HTTP-Posting-Host: ' . gethostbyaddr(getenv("REMOTE_ADDR")) . "\r\n");
|
||||||
if (($ref != false) && (count($ref) > 0)) {
|
if (($ref != false) && (count($ref) > 0)) {
|
||||||
|
|
Loading…
Reference in New Issue