From 2583db40f06f139459fe34e7e86a1e3944836957 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 26 Mar 2004 16:24:08 +0000 Subject: [PATCH] fix for bug [ 923070 ] htmlspecialchars() --- phpgwapi/inc/class.html.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index ce9a074c27..bb956a9ef5 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -67,7 +67,8 @@ function htmlspecialchars($str) { - return htmlspecialchars($str,ENT_COMPAT,$this->charset); + // add @ by lkneschke to supress warning about unknown charset + return @htmlspecialchars($str,ENT_COMPAT,$this->charset); } /*!