Zen Follower
- Join Date:
- Apr 2006
- Posts:
- 354
- Plugin Contributions:
- 0
Post #1 by peace_freak
I have found another error in the logs file that might be related to security... I have had a look at the code but don't know what needs fixing. Could someone help out?
Here is the error message:
PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/globalpe/public_html/store.myURL.jp/includes/functions/functions_general.php on line 74
And here is the area in question:
- Returns a string with conversions for security.
- @param string The string to be parsed
- @param string contains a string to be translated, otherwise just quote is translated
- @param boolean Do we run htmlspecialchars over the string
*/
function zen_output_string($string, $translate = false, $protected = false) {
if ($protected == true) {
return htmlspecialchars($string, ENT_COMPAT, CHARSET, TRUE); ...THIS IS LINE 74...
} else {
if ($translate == false) {
return zen_parse_input_field_data($string, array('"' => '"'));
} else {
return zen_parse_input_field_data($string, $translate);
}
}
}