From b75c48dfe3357a6b5637e42f8c3f6785514ca420 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Tue, 8 Feb 2000 12:18:17 +0000 Subject: [PATCH] This might fix the problem with adding slashes when composing messages git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@196 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 4 ++-- src/compose.php | 4 ++-- src/options.php | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index 5a71dc51..e9a86fd9 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -129,11 +129,11 @@ fputs ($fp, "--".mimeBoundary()."\n"); fputs ($fp, "Content-Type: text/plain; charset=ISO-8859-1\n"); fputs ($fp, "Content-Transfer-Encoding: 8bit\n\n"); - fputs ($fp, "$body\n"); + fputs ($fp, stripslashes($body) . "\n"); attachFiles($fp); fputs ($fp, "\n--".mimeBoundary()."--\n"); } else { - fputs ($fp, "$body\n"); + fputs ($fp, stripslashes($body) . "\n"); } } diff --git a/src/compose.php b/src/compose.php index 8f578972..2af8b6bd 100644 --- a/src/compose.php +++ b/src/compose.php @@ -238,9 +238,9 @@ echo " \n"; echo " \n"; if ($use_signature == true) - echo "   
"; + echo "   
"; else - echo "   
\n"; + echo "   
\n"; echo " \n"; echo " \n"; echo " "; echo " "; echo " "; - echo ""; // LEFT_REFRESH echo " "; -- 2.25.1