From 7b61233feb8e4e7cf0826afa0094b8af87c9f35a Mon Sep 17 00:00:00 2001 From: akhil Date: Tue, 26 Jan 2021 15:10:02 +0530 Subject: [PATCH 1/2] Added 'Date' to email headers --- htdocs/process_email_invite.php | 2 +- htdocs/welcome_mails/sendmail.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/process_email_invite.php b/htdocs/process_email_invite.php index 28ee613..fd00826 100644 --- a/htdocs/process_email_invite.php +++ b/htdocs/process_email_invite.php @@ -74,7 +74,7 @@ function sendInviteMail($to, $secret, $lang) } $subject = $template->subject; $headers = ['From' => $from, 'To' => $to, 'Subject' => $subject, - 'Content-Type' => 'text/html; charset=UTF-8']; + 'Content-Type' => 'text/html; charset=UTF-8', 'Date' => date('D, d M Y H:i:s O')]; // include text and HTML versions $text = $template->text; diff --git a/htdocs/welcome_mails/sendmail.php b/htdocs/welcome_mails/sendmail.php index 670b485..f5d7183 100644 --- a/htdocs/welcome_mails/sendmail.php +++ b/htdocs/welcome_mails/sendmail.php @@ -12,7 +12,8 @@ function sendInviteMail($to, $signup_url) 'From' => $from, 'To' => $to, 'Subject' => $subject, - "Content-Type" => "Content-Type: text/html; charset=UTF-8" + 'Content-Type' => 'Content-Type: text/html; charset=UTF-8', + 'Date' => date('D, d M Y H:i:s O') ]; // include text and HTML versions -- GitLab From e45bb6229294698bb579e07cc698d250ab52036f Mon Sep 17 00:00:00 2001 From: akhil Date: Tue, 26 Jan 2021 16:11:17 +0530 Subject: [PATCH 2/2] Initialized in postDelete.php to avoid php notice --- htdocs/postDelete.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/postDelete.php b/htdocs/postDelete.php index aef6432..3509638 100644 --- a/htdocs/postDelete.php +++ b/htdocs/postDelete.php @@ -35,6 +35,7 @@ function purgeAccountFiles() // c mode to open the file in write mode WITH EXCLUSIVE LOCK, but DO NOT truncate it // find and delete the line + $tmpLine = NULL; // Initialize tmpLine variable to avoid php notice $lines = file($AUTH_FILE_DONE, FILE_IGNORE_NEW_LINES); foreach ($lines as $key => $line) { if (preg_match($regex, $line) == 1) { -- GitLab