From: jervfors Date: Sat, 20 Aug 2005 09:21:47 +0000 (+0000) Subject: HTML fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bfa54da754a946c7083726efb809dd6d89b11cc8;p=squirrelmail.git HTML fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9976 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index ecfa28be..a11e178e 100644 --- a/src/compose.php +++ b/src/compose.php @@ -734,6 +734,7 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se } } + // charset encoding in compose form stuff if (isset($body_part_entity->header->parameters['charset'])) { $actual = $body_part_entity->header->parameters['charset']; } else { @@ -743,6 +744,7 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se if ( $actual && is_conversion_safe($actual) && $actual != $default_charset){ $bodypart = charset_convert($actual,$bodypart,$default_charset,false); } + // end of charset encoding in compose $body .= $bodypart; } @@ -1018,7 +1020,6 @@ function showInputForm ($session, $values=false) { $mailprio, $compose_new_win, $saved_draft, $mail_sent, $sig_first, $username, $compose_messages, $composesession, $default_charset; - $composeMessage = $compose_messages[$session]; if ($values) { $send_to = $values['send_to']; @@ -1073,12 +1074,13 @@ function showInputForm ($session, $values=false) { if ($mail_sent == 'yes') { echo '
'. _("Your Message has been sent.").'
'; } - echo '' . "\n"; if ($compose_new_win == '1') { echo '
'."\n" . ' '.html_tag( 'td', '', 'right' ). ''."\n"; + } else { + echo '
' . "\n"; } if ($location_of_buttons == 'top') { showComposeButtonRow(); @@ -1271,10 +1273,6 @@ function showInputForm ($session, $values=false) { ' ' . "\n"; } // End of file_uploads if-block /* End of attachment code */ - if ($compose_new_win == '1') { - echo '
'."\n"; - } - echo '' . "\n" . addHidden('username', $username). addHidden('smaction', $action). @@ -1382,6 +1380,7 @@ function checkInput ($show) { function saveAttachedFiles($session) { global $_FILES, $attachment_dir, $attachments, $username, $data_dir, $compose_messages; + /* get out of here if no file was attached at all */ if (! is_uploaded_file($_FILES['attachfile']['tmp_name']) ) { return true;