From 7ae5432fbfc0e923f2fe8dc62ff77afb8ecc80cf Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Wed, 30 May 2012 04:42:27 -0400
Subject: [PATCH] Abbreviate long attachment file names with ellipsis (#1488499)

---
 program/lib/html2text.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/lib/html2text.php b/program/lib/html2text.php
index 35120a7..84a7374 100644
--- a/program/lib/html2text.php
+++ b/program/lib/html2text.php
@@ -668,7 +668,7 @@
      */
     private function _preg_callback($matches)
     {
-        switch($matches[1]) {
+        switch (strtolower($matches[1])) {
         case 'b':
         case 'strong':
             return $this->_toupper($matches[2]);

--
Gitblit v1.9.1