From: Tyler A. <fi...@us...> - 2001-02-01 00:01:54
|
Update of /cvsroot/squirrelmail/squirrelmail/src In directory usw-pr-cvs1:/tmp/cvs-serv2709/src Modified Files: compose.php Log Message: Another workaround for an extra newline inside a form. Index: compose.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/src/compose.php,v retrieving revision 1.113 retrieving revision 1.114 diff -u -w -r1.113 -r1.114 --- compose.php 2001/01/31 17:13:11 1.113 +++ compose.php 2001/02/01 00:01:52 1.114 @@ -40,6 +40,9 @@ include("../src/load_prefs.php"); + if (!isset($attachments)) + $attachments = array(); + // This function is used when not sending or adding attachments function newMail () { global $forward_id, $imapConnection, $msg, $ent_num, $body_ary, $body, @@ -299,8 +302,6 @@ echo " <TD BGCOLOR=\"$color[0]\" VALIGN=TOP ALIGN=RIGHT>\n"; echo " <SMALL><BR></SMALL>"._("Attach:"); echo " </td><td ALIGN=left BGCOLOR=\"$color[0]\">\n"; - // echo " <INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\"\n"; - // echo " value=\"10000\">\n"; echo " <INPUT NAME=\"attachfile\" SIZE=48 TYPE=\"file\">\n"; echo " <input type=\"submit\" name=\"attach\""; echo " value=\"" . _("Add") ."\">\n"; @@ -399,6 +400,7 @@ $HTTP_POST_FILES['attachfile']['tmp_name'] != 'none') $AttachFailure = saveAttachedFiles(); if (checkInput(false) && ! isset($AttachFailure)) { + $mailbox = ereg_replace("([\n|\r])", '', $mailbox); $urlMailbox = urlencode ($mailbox); if (! isset($reply_id)) $reply_id = 0; @@ -480,5 +482,3 @@ sqimap_logout($imapConnection); } ?> - - |