Avoid display of articles with out of bounds dates in overboard
This commit is contained in:
parent
1d4c0ceda9
commit
14c7aaa9dc
@ -232,6 +232,11 @@ foreach($files as $article) {
|
|||||||
preg_match('/Date:.*/', $header, $articledate);
|
preg_match('/Date:.*/', $header, $articledate);
|
||||||
$dateoutput = explode("Date: ",$articledate[0]);
|
$dateoutput = explode("Date: ",$articledate[0]);
|
||||||
|
|
||||||
|
$thisdate = strtotime($dateoutput[1]);
|
||||||
|
if(($thisdate > time()) || ($thisdate < $oldest)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$local_poster=false;
|
$local_poster=false;
|
||||||
if(preg_match('/X-Rslight-Site:.*/', $header, $site)) {
|
if(preg_match('/X-Rslight-Site:.*/', $header, $site)) {
|
||||||
$site_match = explode("X-Rslight-Site: ", $site[0]);
|
$site_match = explode("X-Rslight-Site: ", $site[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user