From 5302a931ff10d68ffc67a5a3cadac5128af81c7e Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 19 Jun 2009 15:35:23 +0000 Subject: No link on subject in IE browsers (#1484913) --- program/steps/mail/func.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'program/steps') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 5ce0671c4..8b2f196ad 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -244,7 +244,7 @@ function rcmail_message_list($attrib) if (!sizeof($a_headers)) $OUTPUT->show_message('nomessagesfound', 'notice'); - + $browser = new rcube_browser; $a_js_message_arr = array(); // create row for each message @@ -301,7 +301,6 @@ function rcmail_message_list($attrib) $out .= sprintf("%s\n", $message_icon ? sprintf($image_tag, $skin_path, $message_icon, '') : ''); - $IMAP->set_charset(!empty($header->charset) ? $header->charset : $CONFIG['default_charset']); // format each col @@ -315,7 +314,7 @@ function rcmail_message_list($attrib) $uid_param = $mbox==$CONFIG['drafts_mbox'] ? '_draft_uid' : '_uid'; $cont = abbreviate_string(trim($IMAP->decode_header($header->$col)), 160); if (empty($cont)) $cont = rcube_label('nosubject'); - $cont = sprintf('%s', Q(rcmail_url($action, array($uid_param=>$header->uid, '_mbox'=>$mbox))), Q($cont)); + $cont = $browser->ie ? Q($cont) : sprintf('%s', Q(rcmail_url($action, array($uid_param=>$header->uid, '_mbox'=>$mbox))), Q($cont)); } else if ($col=='flag') $cont = $flagged_icon ? sprintf($image_tag, $skin_path, $flagged_icon, '') : ''; @@ -434,7 +433,7 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $replace=TRUE) $uid_param = $mbox==$CONFIG['drafts_mbox'] ? '_draft_uid' : '_uid'; $cont = abbreviate_string(trim($IMAP->decode_header($header->$col)), 160); if (!$cont) $cont = rcube_label('nosubject'); - $cont = sprintf('%s', Q(rcmail_url($action, array($uid_param=>$header->uid, '_mbox'=>$mbox))), Q($cont)); + $cont = $browser->ie ? Q($cont) : sprintf('%s', Q(rcmail_url($action, array($uid_param=>$header->uid, '_mbox'=>$mbox))), Q($cont)); } else if ($col=='size') $cont = show_bytes($header->$col); -- cgit v1.2.3