Weird. sqStripSlashes isn't needed anymore for form entry?
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Feb 2001 20:55:23 +0000 (20:55 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Feb 2001 20:55:23 +0000 (20:55 +0000)
[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

index 904ad0d9fa1b1eba806dc1945cdcb8fdb9745ab2..66cd551cd71261a8e81e7ecf335efcb7f7c57dd0 100644 (file)
          
          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)
          {
       $subject = sqStripSlashes(decodeHeader($subject));
       $reply_subj = decodeHeader($reply_subj);
       $forward_subj = decodeHeader($forward_subj);
-      $body = sqStripSlashes($body);
       
       if ($use_javascript_addr_book) {
          echo "\n<SCRIPT LANGUAGE=JavaScript><!--\n";