From aac608245fb6b5a220ee71b76e56d5ec173942e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 12 Apr 2016 21:05:58 +0200 Subject: [PATCH] Add quotes around strings in stack traces --- wcfsetup/install/files/lib/core.functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/core.functions.php b/wcfsetup/install/files/lib/core.functions.php index 285e57ffea..6b0832c0c4 100644 --- a/wcfsetup/install/files/lib/core.functions.php +++ b/wcfsetup/install/files/lib/core.functions.php @@ -455,7 +455,7 @@ EXPLANATION; case 'NULL': return 'null'; case 'string': - return StringUtil::encodeHTML($item); + return "'".addcslashes(StringUtil::encodeHTML($item), "\\'")."'"; case 'boolean': return $item ? 'true' : 'false'; case 'array': -- 2.20.1