strip invalid characters on reports
This commit is contained in:
parent
23ddeb539c
commit
3b95166b21
@ -254,7 +254,8 @@ class ErrorHandler {
|
|||||||
$type = gettype($arg);
|
$type = gettype($arg);
|
||||||
$string .= $type . '(';
|
$string .= $type . '(';
|
||||||
if (is_string($arg)) {
|
if (is_string($arg)) {
|
||||||
$string .= print_r(substr($arg, 0, 20), true);
|
$param = iconv('UTF-8', 'UTF-8//IGNORE', substr($arg, 0, 20));
|
||||||
|
$string .= print_r($param, true);
|
||||||
} else {
|
} else {
|
||||||
$string .= print_r($arg, true);
|
$string .= print_r($arg, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user