From 7df4a24abdeb91c7ebc1be33c32738a29fbc0ad7 Mon Sep 17 00:00:00 2001 From: muli Date: Wed, 24 Aug 2022 07:59:58 +0200 Subject: [PATCH] fix: Fixed broken replacement for newlines. --- assets/php/contact_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/php/contact_form.php b/assets/php/contact_form.php index d0c8e33c..89ba09cb 100644 --- a/assets/php/contact_form.php +++ b/assets/php/contact_form.php @@ -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);