diff --git a/lib/private/template.php b/lib/private/template.php index eaa58b769d7..173345cc001 100644 --- a/lib/private/template.php +++ b/lib/private/template.php @@ -272,19 +272,19 @@ class OC_Template extends \OC\Template\Base { if (defined('DEBUG') and DEBUG) { $hint = $exception->getTraceAsString(); if (!empty($hint)) { - $hint = '
'.$hint.''; + $hint = '
'.OC_Util::sanitizeHTML($hint).''; } while (method_exists($exception, 'previous') && $exception = $exception->previous()) { $error_msg .= '