diff options
author | tianhe1986 <w1s2j3229@163.com> | 2017-01-21 10:00:13 +0100 |
---|---|---|
committer | tianhe1986 <w1s2j3229@163.com> | 2017-01-21 10:00:13 +0100 |
commit | 01b6bc80595cc7804ca7a7b50044261b5fd13e78 (patch) | |
tree | 2720a2b87ea2621f447132a632c1ab15395c2ef9 | |
parent | 44c7af639ac1726780b64fb5a6cb6fca2df8b651 (diff) |
Also convert single quotes.
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
-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 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.' </td><td style="padding:5px;color:#000;background-color:#ddd;">'.htmlspecialchars($val)."</td></tr>\n"; + .$config.' </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.' </td><td style="padding:5px;color:#000;background-color:#ddd;">'.htmlspecialchars($val)."</td></tr>\n"; + .$key.' </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>"; |