From: Tim Düsterhus Date: Tue, 12 Apr 2016 19:05:58 +0000 (+0200) Subject: Add quotes around strings in stack traces X-Git-Tag: 3.0.0_Beta_1~1918 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aac608245fb6b5a220ee71b76e56d5ec173942e5;p=GitHub%2FWoltLab%2FWCF.git Add quotes around strings in stack traces --- 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':