From 5e1277e97185ced3d20644fe40a6ad5d8c465b16 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 12 Jun 2016 08:15:12 +0200 Subject: [PATCH] Trim error message --- program/lib/Roundcube/rcube_spellcheck_googie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube_spellcheck_googie.php b/program/lib/Roundcube/rcube_spellcheck_googie.php index 2196cc9ad..82f449a7b 100644 --- a/program/lib/Roundcube/rcube_spellcheck_googie.php +++ b/program/lib/Roundcube/rcube_spellcheck_googie.php @@ -103,7 +103,7 @@ class rcube_spellcheck_googie extends rcube_spellcheck_engine if (preg_match('!^HTTP/1.\d (\d+)(.+)!', $store, $m)) { $http_status = $m[1]; if ($http_status != '200') { - $this->error = 'HTTP ' . $m[1] . $m[2]; + $this->error = 'HTTP ' . $m[1] . rtrim($m[2]); } }