From 079be2c2fbdc9decbbf5bd123c3800ba001423b1 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 22 May 2014 06:34:33 -0400
Subject: [PATCH] If search string cannot be converted to ASCII (result is an empty string) use the original string (#1489911)

---
 program/lib/Roundcube/rcube_text2html.php |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/program/lib/Roundcube/rcube_text2html.php b/program/lib/Roundcube/rcube_text2html.php
index 363f1b2..46c2b7e 100644
--- a/program/lib/Roundcube/rcube_text2html.php
+++ b/program/lib/Roundcube/rcube_text2html.php
@@ -127,10 +127,8 @@
      */
     protected function _convert()
     {
-        $text = stripslashes($this->text);
-
         // Convert TXT to HTML
-        $this->html       = $this->_converter($text);
+        $this->html       = $this->_converter($this->text);
         $this->_converted = true;
     }
 

--
Gitblit v1.9.1