Remove any tabs from incoming article headers
This commit is contained in:
parent
999eb93d06
commit
a005cc597c
@ -246,18 +246,19 @@ function get_articles($ns, $group) {
|
|||||||
$lines++;
|
$lines++;
|
||||||
}
|
}
|
||||||
if($is_header == 1) {
|
if($is_header == 1) {
|
||||||
|
$response = str_replace("\t", " ", $response);
|
||||||
// Find article date
|
// Find article date
|
||||||
if(stripos($response, "Date: ") === 0) {
|
if(stripos($response, "Date: ") === 0) {
|
||||||
$finddate=explode(': ', $response);
|
$finddate=explode(': ', $response, 2);
|
||||||
$article_date = strtotime($finddate[1]);
|
$article_date = strtotime($finddate[1]);
|
||||||
}
|
}
|
||||||
// Get overview data
|
// Get overview data
|
||||||
if(stripos($response, "Message-ID: ") === 0) {
|
if(stripos($response, "Message-ID: ") === 0) {
|
||||||
$mid=explode(': ', $response);
|
$mid=explode(': ', $response, 2);
|
||||||
$ref=0;
|
$ref=0;
|
||||||
}
|
}
|
||||||
if(stripos($response, "From: ") === 0) {
|
if(stripos($response, "From: ") === 0) {
|
||||||
$from=explode(': ', $response);
|
$from=explode(': ', $response, 2);
|
||||||
if(isset($CONFIG['enable_nntp']) && $CONFIG['enable_nntp'] == true) {
|
if(isset($CONFIG['enable_nntp']) && $CONFIG['enable_nntp'] == true) {
|
||||||
foreach($banned_names as $banned_name) {
|
foreach($banned_names as $banned_name) {
|
||||||
if(stripos($from[1], $banned_name) !== false) {
|
if(stripos($from[1], $banned_name) !== false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user