From 086767c8f273e3bdd6c455876ccbcd876041b503 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 04 Sep 2010 03:59:48 -0400
Subject: [PATCH] - Added mail_header_delimiter validation
---
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 572942e..9c5267f 100644
--- a/program/lib/html2text.php
+++ b/program/lib/html2text.php
@@ -476,7 +476,7 @@
$text = preg_replace_callback($this->callback_search, array('html2text', '_preg_callback'), $text);
// Remove unknown/unhandled entities (this cannot be done in search-and-replace block)
- $text = preg_replace('/&[^&;]+;/i', '', $text);
+ $text = preg_replace('/&#?[a-z0-9]{2,7};/i', '', $text);
// Strip any other HTML tags
$text = strip_tags($text, $this->allowed_tags);
--
Gitblit v1.9.1