workaround for SELECT problem
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 1 Feb 2001 05:01:24 +0000 (05:01 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 1 Feb 2001 05:01:24 +0000 (05:01 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1027 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 04010d845cf3e5323fd133f1d2af0ffd005c1567..42cb5b43515bbe0e60345b44de5f1f890122e13a 100644 (file)
       }
     }
 
+   $mailbox = trim($mailbox);
+   $send_to = trim($send_to);
+   $send_to_cc = trim($send_to_cc);
+   $send_to_bcc = trim($send_to_bcc);
+   $subject = trim($subject);
+   $body = trim($body);
+   $attachfile = trim($attachfile);
+   
    if (!isset($mailbox) || $mailbox == "" || ($mailbox == "None"))
       $mailbox = "INBOX";
 
           $HTTP_POST_FILES['attachfile']['tmp_name'] != 'none')
           $AttachFailure = saveAttachedFiles();
       if (checkInput(false) && ! isset($AttachFailure)) {
-         $urlMailbox = urlencode ($mailbox);
-        if (! isset($reply_id))
-            $reply_id = 0;
+         $urlMailbox = urlencode (trim($mailbox));
+         if (! isset($reply_id))
+             $reply_id = 0;
          sendMessage($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id);
          header ("Location: right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=1");
       } else {