summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/show.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-23 12:12:27 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-23 12:12:27 +0000
commitd3ce61a4e04ace77827e1cdc7f6c5860029fb6e1 (patch)
tree6586c42e1dc4627666be49faf337fdb0f4dea144 /roundcubemail/program/steps/mail/show.inc
parent3934f815932fa6dcfe7bf15c3d49bbb0036cec3e (diff)
- performance fix: don't check mbstring functions existence too often
git-svn-id: https://svn.roundcube.net/trunk@2788 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/show.inc')
-rw-r--r--roundcubemail/program/steps/mail/show.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc
index ffd569d21..068ccbcd7 100644
--- a/roundcubemail/program/steps/mail/show.inc
+++ b/roundcubemail/program/steps/mail/show.inc
@@ -162,7 +162,7 @@ function rcmail_message_attachments($attrib)
$ol .= html::tag('li', null, sprintf("%s (%s)", Q($attach_prop->filename), Q(show_bytes($attach_prop->size))));
}
else {
- if (rc_strlen($attach_prop->filename) > 50) {
+ if (mb_strlen($attach_prop->filename) > 50) {
$filename = abbreviate_string($attach_prop->filename, 50);
$title = $attach_prop->filename;
}