From 887f7f28f8e85139eae7031a63d8c88c4832dfca Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 24 May 2005 12:38:58 +0000 Subject: [PATCH] drop any double spaces since these will be displayed in the title-attribute git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9449 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 1ffe727c..9834405f 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -576,7 +576,8 @@ function prepareMessageList(&$aMailbox, $aProps) { // FIXME: don't break 8bit symbols and html entities during truncation if (isset($aColumnDesc[$k]['truncate']) && $aColumnDesc[$k]['truncate']) { $sTmp = truncateWithEntities($value, $aColumnDesc[$k]['truncate']-$iIndent); - $title = ($sTmp != $value) ? $value : ''; + // drop any double spaces since these will be displayed in the title + $title = ($sTmp != $value) ? preg_replace('/\s{2,}/', ' ', $value) : ''; $value = $sTmp; } /* generate the link to the message */ @@ -1381,4 +1382,4 @@ function attachSelectedMessages($imapConnection,$aMsgHeaders) { return $composesession; } -?> \ No newline at end of file +?> -- 2.25.1