fix: Fixed broken replacement for newlines.
This commit is contained in:
parent
7ae47ee590
commit
7df4a24abd
@ -16,7 +16,7 @@ function sanitize_text(string $name, string $type) {
|
||||
function prepare_message_body($message) {
|
||||
// Replace HTML-Entities with actual carriage returns and line feeds
|
||||
$message = str_replace(" ", "\r", $message);
|
||||
$message = str_replace(" ", "\r", $message);
|
||||
$message = str_replace(" ", "\n", $message);
|
||||
|
||||
// Ensure line breaks via carriage return + line feed
|
||||
$message = str_replace("\r\n", "\n", $message);
|
||||
|
Loading…
Reference in New Issue
Block a user