Skip to content

Commit

Permalink
Update to sending emails in demo
Browse files Browse the repository at this point in the history
Related to #1000
  • Loading branch information
eSilverStrike committed Nov 29, 2019
1 parent aec340f commit 8a1c189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public_html/lib-common.php
Expand Up @@ -3840,8 +3840,8 @@ function COM_mail($to, $subject, $message, $from = '', $html = false, $priority
}

// Just in case
$message = htmlspecialchars($message, ENT_QUOTES, $charset);
$message = str_replace(["\r\n", "\n", "\r"], '<br>', $message);
//$message = htmlspecialchars($message, ENT_QUOTES, $charset); // Can't do this as it corrupts our urls in Geeklogs Notifications
$message = str_replace(["\r\n", "\n", "\r"], '<br' . XHTML . '>', $message);
$system_message = <<<EOD
<h2>{$LANG_DEMO['notice']}</h2>
<p>{$LANG_DEMO['emails_disabled_msg']}</p>
Expand Down

0 comments on commit 8a1c189

Please sign in to comment.