diff --git a/class2.php b/class2.php index 0f1148d38..02727dd12 100644 --- a/class2.php +++ b/class2.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/class2.php,v $ -| $Revision: 1.27 $ -| $Date: 2007-10-30 00:48:23 $ -| $Author: e107coders $ +| $Revision: 1.28 $ +| $Date: 2007-11-09 05:41:37 $ +| $Author: streaky $ +----------------------------------------------------------------------------+ */ // @@ -1506,12 +1506,16 @@ function include_lan($path, $force = false) { } if(!function_exists("print_a")) { + $charset = "utf-8"; + if(defined("CHARSET")) { + $charset = CHARSET; + } function print_a($var, $return = false) { if(!$return){ - echo '
'.print_r($var, true).''; + echo '
'.htmlspecialchars(print_r($var, true), ENT_QUOTES, $charset).''; return true; } else { - return '
'.print_r($var, true).''; + return '
'.htmlspecialchars(print_r($var, true), ENT_QUOTES, $charset).''; } } }