summaryrefslogtreecommitdiff
path: root/program/steps/utils
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-08-25 13:20:46 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-08-25 13:20:46 +0200
commitc58cb8aa951e38357f56899a682022f93f47d71f (patch)
tree362251775e5b17cf2b7f279a63ffda0ac0289bbd /program/steps/utils
parent2e5f64c9e42c4a0cf8a2541971e178a2a48e36ae (diff)
Strip spell checker error message for logging; remove unused sprintf()
Diffstat (limited to 'program/steps/utils')
-rw-r--r--program/steps/utils/spell.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/utils/spell.inc b/program/steps/utils/spell.inc
index 38e4ca285..1c68e8328 100644
--- a/program/steps/utils/spell.inc
+++ b/program/steps/utils/spell.inc
@@ -45,7 +45,7 @@ else {
if ($err = $spellchecker->error()) {
rcube::raise_error(array('code' => 500, 'type' => 'php',
'file' => __FILE__, 'line' => __LINE__,
- 'message' => sprintf("Spell check engine error: " . $err)),
+ 'message' => "Spell check engine error: " . trim($err)),
true, false);
}