From cbe701ac4ac574f91b6217f8d1a5692beb5d73e2 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 18 Nov 2015 07:27:00 -0500
Subject: [PATCH] Fix rcube_utils::words_match() to work with mixed/invalid/binary content (T844)

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

diff --git a/program/lib/Roundcube/rcube_string_replacer.php b/program/lib/Roundcube/rcube_string_replacer.php
index c106da0..eb281ee 100644
--- a/program/lib/Roundcube/rcube_string_replacer.php
+++ b/program/lib/Roundcube/rcube_string_replacer.php
@@ -58,7 +58,8 @@
     /**
      * Add a string to the internal list
      *
-     * @param string String value 
+     * @param string String value
+     *
      * @return int Index of value for retrieval
      */
     public function add($str)
@@ -140,6 +141,7 @@
      * Callback function used to build mailto: links around e-mail strings
      *
      * @param array Matches result from preg_replace_callback
+     *
      * @return int Index of saved string value
      */
     public function mailto_callback($matches)

--
Gitblit v1.9.1