From 9d30b03e35d6ed04ac287118f8d62625e81f9923 Mon Sep 17 00:00:00 2001 From: Svennd Date: Thu, 10 Feb 2022 08:52:09 +0100 Subject: Update Profiler.php fix it with string casting instead, based on feedback of jamieburchell :) thanks ! --- system/libraries/Profiler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php index 3c6a464d3..65eb3c3e3 100644 --- a/system/libraries/Profiler.php +++ b/system/libraries/Profiler.php @@ -496,7 +496,7 @@ class CI_Profiler { } $output .= '' - .$config.'  '.$pre.htmlspecialchars((($val) ? $val :''), ENT_QUOTES, config_item('charset')).$pre_close."\n"; + .$config.'  '.$pre.htmlspecialchars((string)$val, ENT_QUOTES, config_item('charset')).$pre_close."\n"; } return $output."\n"; @@ -534,7 +534,7 @@ class CI_Profiler { } $output .= '' - .$key.'  '.$pre.htmlspecialchars($val, ENT_QUOTES, config_item('charset')).$pre_close."\n"; + .$key.'  '.$pre.htmlspecialchars((string)$val, ENT_QUOTES, config_item('charset')).$pre_close."\n"; } return $output."\n"; -- cgit v1.2.3-24-g4f1b