@@ 475-490 (lines=16) @@ | ||
472 | ||
473 | if (count($compiled_userdata)) |
|
474 | { |
|
475 | foreach ($compiled_userdata as $key => $val) |
|
476 | { |
|
477 | if (is_numeric($key)) |
|
478 | { |
|
479 | $output[$key] = "'$val'"; |
|
480 | } |
|
481 | ||
482 | if (is_array($val) || is_object($val)) |
|
483 | { |
|
484 | $output[$key] = htmlspecialchars(stripslashes(print_r($val, true))); |
|
485 | } |
|
486 | else |
|
487 | { |
|
488 | $output[$key] = htmlspecialchars(stripslashes($val)); |
|
489 | } |
|
490 | } |
|
491 | } |
|
492 | } |
|
493 | ||
@@ 510-525 (lines=16) @@ | ||
507 | { |
|
508 | $output = ''; |
|
509 | ||
510 | foreach ($this->_ci_cached_vars as $key => $val) |
|
511 | { |
|
512 | if (is_numeric($key)) |
|
513 | { |
|
514 | $output[$key] = "'$val'"; |
|
515 | } |
|
516 | ||
517 | if (is_array($val) || is_object($val)) |
|
518 | { |
|
519 | $output[$key] = htmlspecialchars(stripslashes(print_r($val, true))); |
|
520 | } |
|
521 | else |
|
522 | { |
|
523 | $output[$key] = htmlspecialchars(stripslashes($val)); |
|
524 | } |
|
525 | } |
|
526 | ||
527 | return $output; |
|
528 | } |