Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/template.php')
-rw-r--r--lib/private/template.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/private/template.php b/lib/private/template.php
index 983c0e3628d..4acbe4d1195 100644
--- a/lib/private/template.php
+++ b/lib/private/template.php
@@ -269,14 +269,17 @@ class OC_Template extends \OC\Template\Base {
while (method_exists($exception, 'previous') && $exception = $exception->previous()) {
$error_msg .= '<br/>Caused by:' . ' ';
if ($exception->getCode()) {
- $error_msg .= '['.OC_Util::sanitizeHTML($exception->getCode()).'] ';
+ $code = $exception->getCode();
+ $error_msg .= '['.OC_Util::sanitizeHTML($code).'] ';
}
- $error_msg .= OC_Util::sanitizeHTML($exception->getMessage());
+ $message = $exception->getMessage();
+ $error_msg .= OC_Util::sanitizeHTML($message);
};
} else {
$hint = '';
if ($exception instanceof \OC\HintException) {
- $hint = OC_Util::sanitizeHTML($exception->getHint());
+ $hint = $exception->getHint();
+ $hint = OC_Util::sanitizeHTML($hint);
}
}
self::printErrorPage($error_msg, $hint);