summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-28 08:36:28 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-28 08:37:19 +0200
commitb4a0b9285f4bad7aed929c50069bfda7d75d9299 (patch)
tree55fdb4eadf85e1bef926831b91283695e7358f0d /program
parentd4877917fc3bfc933a52448e0563afc9c28f6cb8 (diff)
Fix html2text conversion of strong|b|a|th|h tags when used in upper case
Diffstat (limited to 'program')
-rw-r--r--program/lib/html2text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/html2text.php b/program/lib/html2text.php
index 35120a712..84a7374b3 100644
--- a/program/lib/html2text.php
+++ b/program/lib/html2text.php
@@ -668,7 +668,7 @@ class html2text
*/
private function _preg_callback($matches)
{
- switch($matches[1]) {
+ switch (strtolower($matches[1])) {
case 'b':
case 'strong':
return $this->_toupper($matches[2]);