From: kink Date: Sun, 16 Mar 2003 12:28:00 +0000 (+0000) Subject: When an identity has no full_name, display the emailaddress without < and >. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0f2570915e573e589b64a7b80c4e2722b3dd29dd;p=squirrelmail.git When an identity has no full_name, display the emailaddress without < and >. While we're at it, do some HTML fixes. Closes #702257. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4656 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index d387c7cf..79528886 100644 --- a/ChangeLog +++ b/ChangeLog @@ -42,6 +42,7 @@ Version 1.4.0 CVS - Fixed compose to remember attachments. - Fixed possible XSS in compose when replying to malicious sources. - Add display of the maximum filesize for attachment uploads. + - Do not add < and > if an identity doesn't contain a full name. Version 1.4.0 RC 2a ------------------- diff --git a/src/compose.php b/src/compose.php index 798c9a17..8387d69d 100644 --- a/src/compose.php +++ b/src/compose.php @@ -908,73 +908,85 @@ function showInputForm ($session, $values=false) { showComposeButtonRow(); } + /* display select list for identities */ $idents = getPref($data_dir, $username, 'identities', 0); if ($idents > 1) { - echo ' ' . "\n" . - html_tag( 'td', '', 'right', $color[4], 'WIDTH="10%"' ) . - _("From:") . '' . "\n" . - html_tag( 'td', '', 'left', $color[4], 'WIDTH="90%"' ) . - ' ' . "\n" . + ' '; } echo '' . "\n" . - ' ' . "\n" . - ' ' . "\n"; + ' ' . "\n" . + ' ' . "\n"; } - echo ' ' . "\n" . - html_tag( 'td', '', 'right', $color[4], 'WIDTH="10%"' ) . + echo ' ' . "\n" . + html_tag( 'td', '', 'right', $color[4], 'width="10%"' ) . _("To:") . '' . "\n" . - html_tag( 'td', '', 'left', $color[4], 'WIDTH="90%"' ) . - '
' . "\n" . - ' ' . "\n" . - ' ' . "\n" . - ' ' . "\n" . + html_tag( 'td', '', 'left', $color[4], 'width="90%"' ) . + '
' . "\n" . + ' ' . "\n" . + ' ' . "\n" . + ' ' . "\n" . html_tag( 'td', '', 'right', $color[4] ) . - _("CC:") . '' . "\n" . + _("CC:") . '' . "\n" . html_tag( 'td', '', 'left', $color[4] ) . - '
' . "\n" . - ' ' . "\n" . - ' ' . "\n" . - ' ' . "\n" . + '
' . "\n" . + ' ' . "\n" . + ' ' . "\n" . + ' ' . "\n" . html_tag( 'td', '', 'right', $color[4] ) . - _("BCC:") . '' . "\n" . + _("BCC:") . '' . "\n" . html_tag( 'td', '', 'left', $color[4] ) . - '
' . "\n" . - ' ' . "\n" . - ' ' . "\n" . - ' ' . "\n" . + '
' . "\n" . + ' ' . "\n" . + ' ' . "\n" . + ' ' . "\n" . html_tag( 'td', '', 'right', $color[4] ) . - _("Subject:") . '' . "\n" . + _("Subject:") . '' . "\n" . html_tag( 'td', '', 'left', $color[4] ) . "\n"; - echo ' ' . "\n" . - ' ' . "\n" . - ' ' . "\n\n"; + echo ' ' . "\n" . + ' ' . "\n" . + ' ' . "\n\n"; if ($location_of_buttons == 'between') { showComposeButtonRow(); } + /* why this distinction? */ if ($compose_new_win == '1') { echo ' ' . "\n" . ' ' . "\n" . @@ -987,6 +999,7 @@ function showInputForm ($session, $values=false) { '   
' . "\n" . - ' ' . "\n" . - ' ' . "\n"; + echo '
' . "\n" . + ' ' . "\n" . + ' ' . "\n"; if ($location_of_buttons == 'bottom') { showComposeButtonRow(); } else { - echo ' ' . "\n" . - html_tag( 'td', '', 'right', '', 'COLSPAN=2' ) . "\n" . - ' ' . "\n" . - '     

' . "\n" . - ' ' . "\n" . - ' ' . "\n"; + echo ' ' . "\n" . + html_tag( 'td', '', 'right', '', 'colspan="2"' ) . "\n" . + ' ' . "\n" . + '     

' . "\n" . + ' ' . "\n" . + ' ' . "\n"; } /* This code is for attachments */