From d6660bff043125308fd6cf26516797f833bf35b3 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 21 Dec 2023 02:02:40 -0500 Subject: [PATCH] Fix sending mail on item sharing --- ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax.php b/ajax.php index 9f7e5b18..dfc6df69 100644 --- a/ajax.php +++ b/ajax.php @@ -310,7 +310,7 @@ if (isset($_GET['share_generate_link'])) { if ($item_expires_friendly == "never") { $subject = "$session_company_name secure link enclosed"; } - $body = "Hello,

$session_name from $session_company_name sent you a time sensitive secure link regarding '$item_name'.

The link will expire in $item_expires_friendly and may only be viewed $item_view_limit times, before the link is destroyed.

Click here to access your secure content

~
$session_company_name
Support Department
$config_ticket_from_email"; + $body = mysqli_real_escape_string($mysqli, "Hello,

$session_name from $session_company_name sent you a time sensitive secure link regarding '$item_name'.

The link will expire in $item_expires_friendly and may only be viewed $item_view_limit times, before the link is destroyed.

Click here to access your secure content

~
$session_company_name
Support Department
$config_ticket_from_email"); $data = [ [ @@ -319,7 +319,7 @@ if (isset($_GET['share_generate_link'])) { 'recipient' => $item_email, 'recipient_name' => $item_email, 'subject' => $subject, - 'body' => $body, + 'body' => $body ] ];