Block preloading of Path or Injection-Info headers.
This commit is contained in:
parent
2c6c08c044
commit
4c58cb8b95
|
@ -355,6 +355,14 @@ function process_post($message, $group)
|
||||||
$ref = 0;
|
$ref = 0;
|
||||||
$sub = 0;
|
$sub = 0;
|
||||||
}
|
}
|
||||||
|
if (stripos($line, "Path: ") === 0) {
|
||||||
|
$response = "441 Posting failed (Header preloading denied)\r\n";
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
|
if (stripos($line, "Injection-Info: ") === 0) {
|
||||||
|
$response = "441 Posting failed (Header preloading denied)\r\n";
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
if (stripos($line, "Date: ") === 0) {
|
if (stripos($line, "Date: ") === 0) {
|
||||||
$finddate = explode(': ', $line);
|
$finddate = explode(': ', $line);
|
||||||
$article_date = strtotime($finddate[1]);
|
$article_date = strtotime($finddate[1]);
|
||||||
|
|
Loading…
Reference in New Issue