[Rspamd] Remove buggy last-modified check

master
andryyy 2019-03-08 12:43:05 +01:00
parent d124fa1d5b
commit 2443e956eb
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ catch (PDOException $e) {
} }
// Check if db changed and return header // Check if db changed and return header
$stmt = $pdo->prepare("SELECT UNIX_TIMESTAMP(UPDATE_TIME) AS `db_update_time` FROM information_schema.tables /*$stmt = $pdo->prepare("SELECT UNIX_TIMESTAMP(UPDATE_TIME) AS `db_update_time` FROM information_schema.tables
WHERE `TABLE_NAME` = 'filterconf' WHERE `TABLE_NAME` = 'filterconf'
AND TABLE_SCHEMA = :dbname;"); AND TABLE_SCHEMA = :dbname;");
$stmt->execute(array( $stmt->execute(array(
@ -42,6 +42,7 @@ if (isset($headers['If-Modified-Since']) && (strtotime($headers['If-Modified-Sin
} else { } else {
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $db_update_time).' GMT', true, 200); header('Last-Modified: '.gmdate('D, d M Y H:i:s', $db_update_time).' GMT', true, 200);
} }
*/
function parse_email($email) { function parse_email($email) {
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) return false; if (!filter_var($email, FILTER_VALIDATE_EMAIL)) return false;