From 52a8e7e2f53b23f41b40aa5bc5b35f338aaec3dd Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Thu, 26 May 2016 02:05:33 -0400 Subject: [PATCH] prevent empty support messages in help module (Fixes: #3697) --- interface/web/help/support_message_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/web/help/support_message_edit.php b/interface/web/help/support_message_edit.php index 4fcf5da215..9886541e3b 100644 --- a/interface/web/help/support_message_edit.php +++ b/interface/web/help/support_message_edit.php @@ -73,7 +73,7 @@ class page_action extends tform_actions { } $confirmation_message .= "\n\n".$app->tform->lng('message_txt').": \"".$this->dataRecord['message']."\""; $confirmation_message .= "\n\nISPConfig: ".($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://').$_SERVER['HTTP_HOST']; - $app->functions->mail($sender_email, $subject, $confirmation_message, $recipient_email); + if ($this->dataRecord['subject'] != '' && $this->dataRecord['message'] != '') $app->functions->mail($sender_email, $subject, $confirmation_message, $recipient_email); } else { $app->tform->errorMessage .= $app->tform->lng("recipient_or_sender_email_address_not_valid_txt")."<br />"; } -- GitLab