From 2d7b4ff03fc5a4ee4705698d96ad377b5f81a65c Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 28 May 2012 02:36:28 -0400
Subject: [PATCH] Fix html2text conversion of strong|b|a|th|h tags when used in upper case

---
 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