summaryrefslogtreecommitdiffstats
path: root/system/libraries/Profiler.php
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2017-01-21 10:00:13 +0100
committertianhe1986 <w1s2j3229@163.com>2017-01-21 10:00:13 +0100
commit01b6bc80595cc7804ca7a7b50044261b5fd13e78 (patch)
tree2720a2b87ea2621f447132a632c1ab15395c2ef9 /system/libraries/Profiler.php
parent44c7af639ac1726780b64fb5a6cb6fca2df8b651 (diff)
Also convert single quotes.
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'system/libraries/Profiler.php')
-rw-r--r--system/libraries/Profiler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php
index e9e03cfe0..c1fa5a081 100644
--- a/system/libraries/Profiler.php
+++ b/system/libraries/Profiler.php
@@ -490,7 +490,7 @@ class CI_Profiler {
}
$output .= '<tr><td style="padding:5px;vertical-align:top;color:#900;background-color:#ddd;">'
- .$config.'&nbsp;&nbsp;</td><td style="padding:5px;color:#000;background-color:#ddd;">'.htmlspecialchars($val)."</td></tr>\n";
+ .$config.'&nbsp;&nbsp;</td><td style="padding:5px;color:#000;background-color:#ddd;">'.htmlspecialchars($val, ENT_QUOTES, config_item('charset'))."</td></tr>\n";
}
return $output."</table>\n</fieldset>";
@@ -522,7 +522,7 @@ class CI_Profiler {
}
$output .= '<tr><td style="padding:5px;vertical-align:top;color:#900;background-color:#ddd;">'
- .$key.'&nbsp;&nbsp;</td><td style="padding:5px;color:#000;background-color:#ddd;">'.htmlspecialchars($val)."</td></tr>\n";
+ .$key.'&nbsp;&nbsp;</td><td style="padding:5px;color:#000;background-color:#ddd;">'.htmlspecialchars($val, ENT_QUOTES, config_item('charset'))."</td></tr>\n";
}
return $output."</table>\n</fieldset>";