diff options
author | Svennd <svennson@gmail.com> | 2022-02-10 08:52:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 08:52:09 +0100 |
commit | 9d30b03e35d6ed04ac287118f8d62625e81f9923 (patch) | |
tree | 47feedb118bd41e9ad7af83f15693aba78e343b0 /system/libraries | |
parent | 05d2877cc169d9f31f43e42a7c6aea5dd10facaf (diff) |
Update Profiler.php
fix it with string casting instead, based on feedback of jamieburchell :) thanks !
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Profiler.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 .= '<tr><td style="padding:5px;vertical-align:top;color:#900;background-color:#ddd;">' - .$config.' </td><td style="padding:5px;color:#000;background-color:#ddd;">'.$pre.htmlspecialchars((($val) ? $val :''), ENT_QUOTES, config_item('charset')).$pre_close."</td></tr>\n"; + .$config.' </td><td style="padding:5px;color:#000;background-color:#ddd;">'.$pre.htmlspecialchars((string)$val, ENT_QUOTES, config_item('charset')).$pre_close."</td></tr>\n"; } return $output."</table>\n</fieldset>"; @@ -534,7 +534,7 @@ class CI_Profiler { } $output .= '<tr><td style="padding:5px;vertical-align:top;color:#900;background-color:#ddd;">' - .$key.' </td><td style="padding:5px;color:#000;background-color:#ddd;">'.$pre.htmlspecialchars($val, ENT_QUOTES, config_item('charset')).$pre_close."</td></tr>\n"; + .$key.' </td><td style="padding:5px;color:#000;background-color:#ddd;">'.$pre.htmlspecialchars((string)$val, ENT_QUOTES, config_item('charset')).$pre_close."</td></tr>\n"; } return $output."</table>\n</fieldset>"; |