diff --git a/dev/Backtrace.php b/dev/Backtrace.php index 186641ead..45531f70e 100644 --- a/dev/Backtrace.php +++ b/dev/Backtrace.php @@ -173,7 +173,7 @@ class SS_Backtrace { } $result .= "
" . htmlentities($val) . "\n"; + $val = "
" . htmlentities($val, ENT_COMPAT, 'UTF-8') . "\n"; } } diff --git a/dev/DebugView.php b/dev/DebugView.php index 9014e3be6..fea85a309 100644 --- a/dev/DebugView.php +++ b/dev/DebugView.php @@ -126,7 +126,7 @@ class DebugView extends Object { */ public function writeError($httpRequest, $errno, $errstr, $errfile, $errline, $errcontext) { $errorType = self::$error_types[$errno]; - $httpRequestEnt = htmlentities($httpRequest); + $httpRequestEnt = htmlentities($httpRequest, ENT_COMPAT, 'UTF-8'); echo '
The following problems are preventing me from installing SilverStripe CMS:
\n\n"; foreach($this->errors as $error) { - echo "$test | " . nl2br(htmlentities($result[1])) . " |
$test | " . nl2br(htmlentities($result[1]), ENT_COMPAT, 'UTF-8') . " |