From a7dba8546377d2f018cc7fa8d170e7b795077ae6 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 19 Jan 2010 14:47:05 +0000 Subject: [PATCH] - ignore json_encode() warnings --- program/include/rcube_shared.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 99d8b16df..e93e9aefe 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -578,7 +578,9 @@ function json_serialize($input) { $input = rc_utf8_clean($input); - return json_encode($input); + // sometimes even using rc_utf8_clean() the input contains invalid UTF-8 sequences + // that's why we have @ here + return @json_encode($input); }