From ab4700c3c170e2efa09159e565e512431a917d69 Mon Sep 17 00:00:00 2001 From: tassium Date: Mon, 2 Dec 2002 20:11:04 +0000 Subject: [PATCH] Fix undefined var "charset" in showInputForm() (Japanese charset support) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4203 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compose.php b/src/compose.php index 777ff239..83e111e1 100644 --- a/src/compose.php +++ b/src/compose.php @@ -808,7 +808,7 @@ function showInputForm ($session, $values=false) { $username, $data_dir, $identity, $draft_id, $delete_draft, $mailprio, $default_use_mdn, $mdn_user_support, $compose_new_win, $saved_draft, $mail_sent, $sig_first, $edit_as_new, $action, - $username, $compose_messages, $composesession; + $username, $compose_messages, $composesession, $default_charset; $composeMessage = $compose_messages[$session]; @@ -950,7 +950,7 @@ function showInputForm ($session, $values=false) { } if ($use_signature == true && $newmail == true && !isset($from_htmladdr_search)) { if ($sig_first == '1') { - if ($charset == 'iso-2022-jp') { + if ($default_charset == 'iso-2022-jp') { echo "\n\n".($prefix_sig==true? "-- \n":'').mb_convert_encoding($signature, 'EUC-JP'); } else { echo "\n\n".($prefix_sig==true? "-- \n":'').htmlspecialchars($signature); @@ -959,7 +959,7 @@ function showInputForm ($session, $values=false) { } else { echo "\n\n".htmlspecialchars($body); - if ($charset == 'iso-2022-jp') { + if ($default_charset == 'iso-2022-jp') { echo "\n\n".($prefix_sig==true? "-- \n":'').mb_convert_encoding($signature, 'EUC-JP'); }else{ echo "\n\n".($prefix_sig==true? "-- \n":'').htmlspecialchars($signature); -- 2.25.1