From: fidian Date: Wed, 8 Aug 2001 17:06:32 +0000 (+0000) Subject: Only adds the title if the subject isn't completely shown. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8c16ad63e49c95f2b9aa7f6ce9fe1081d93add44;p=squirrelmail.git Only adds the title if the subject isn't completely shown. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1477 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 30880ec9..89ae5eba 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -123,13 +123,15 @@ if (! isset($search_stuff)) { $search_stuff = ''; } echo "$flag$subject$flag_end$bold_end\n"; + if ($subject != $msg['SUBJECT']) { + $title = get_html_translation_table(HTML_SPECIALCHARS); + $title = array_flip($title); + $title = strtr($msg['SUBJECT'], $title); + $title = str_replace('"', "''", $title); + echo " title=\"$title\""; + } + echo ">$flag$subject$flag_end$bold_end\n"; break; case 5: # flags $stuff = false;