From f82d9be23d3edc1df9360d60102025fda8ef0d19 Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 2 Feb 2001 20:55:23 +0000 Subject: [PATCH] Weird. sqStripSlashes isn't needed anymore for form entry? [SM Developers: Verify this change works for you] [Send a message like this "this is a backslash \ tada!" and see if it works] git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1046 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/compose.php b/src/compose.php index 904ad0d9..66cd551c 100644 --- a/src/compose.php +++ b/src/compose.php @@ -76,11 +76,11 @@ if ($message->header->type1 == "html") $body = strip_tags($body); - + sqUnWordWrap($body); $body_ary = explode("\n", $body); $i = count($body_ary) - 1; - while (isset($body_ary[$i]) && ereg("^[>\s]*$", $body_ary[$i])) { + while (isset($body_ary[$i]) && ereg("^[>\\s]*$", $body_ary[$i])) { unset($body_ary[$i]); $i --; } @@ -88,7 +88,7 @@ for ($i=0; $i < count($body_ary); $i++) { if (! $forward_id) { - if (ereg('^[\s>]+', $body_ary[$i])) + if (ereg('^[\\s>]+', $body_ary[$i])) { $body_ary[$i] = '>' . $body_ary[$i]; } @@ -99,7 +99,7 @@ } sqWordWrap($body_ary[$i], $editor_size - 1); $body .= $body_ary[$i] . "\n"; - $body_ary[$i] = ''; + unset($body_ary[$i]); } if ($forward_id) { @@ -200,7 +200,6 @@ $subject = sqStripSlashes(decodeHeader($subject)); $reply_subj = decodeHeader($reply_subj); $forward_subj = decodeHeader($forward_subj); - $body = sqStripSlashes($body); if ($use_javascript_addr_book) { echo "\n