From a1be62b19d23e9819bacfc01fcdb03d706daa5bf Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 15 Feb 2018 08:59:59 +0100 Subject: [PATCH] Remove redundant trim() --- program/lib/Roundcube/rcube_utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube_utils.php b/program/lib/Roundcube/rcube_utils.php index dedaae125..ab669caf9 100644 --- a/program/lib/Roundcube/rcube_utils.php +++ b/program/lib/Roundcube/rcube_utils.php @@ -514,7 +514,7 @@ class rcube_utils */ public static function xss_entity_decode($content) { - $callback = function($matches) { return chr(hexdec(trim($matches[1]))); }; + $callback = function($matches) { return chr(hexdec($matches[1])); }; $out = html_entity_decode(html_entity_decode($content)); $out = trim(preg_replace('/(^$)/', '', trim($out)));