From 01b6bc80595cc7804ca7a7b50044261b5fd13e78 Mon Sep 17 00:00:00 2001 From: tianhe1986 Date: Sat, 21 Jan 2017 17:00:13 +0800 Subject: Also convert single quotes. Signed-off-by: tianhe1986 --- 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 e9e03cfe0..c1fa5a081 100644 --- a/system/libraries/Profiler.php +++ b/system/libraries/Profiler.php @@ -490,7 +490,7 @@ class CI_Profiler { } $output .= '' - .$config.'  '.htmlspecialchars($val)."\n"; + .$config.'  '.htmlspecialchars($val, ENT_QUOTES, config_item('charset'))."\n"; } return $output."\n"; @@ -522,7 +522,7 @@ class CI_Profiler { } $output .= '' - .$key.'  '.htmlspecialchars($val)."\n"; + .$key.'  '.htmlspecialchars($val, ENT_QUOTES, config_item('charset'))."\n"; } return $output."\n"; -- cgit v1.2.3-24-g4f1b