Skip to content

Commit

Permalink
[stable10] fixed double escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
peterprochaska authored and DeepDiver1975 committed Oct 19, 2017
1 parent ef290c2 commit 73f668f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/legacy/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public static function printErrorPage( $error_msg, $hint = '', $httpStatusCode =

try {
$content = new \OC_Template( '', 'error', 'error', false );
$errors = [['error' => \OCP\Util::sanitizeHTML($error_msg), 'hint' => \OCP\Util::sanitizeHTML($hint)]];
$errors = [['error' => $error_msg, 'hint' => $hint]];
$content->assign( 'errors', $errors );
if ($httpStatusCode !== null) {
http_response_code((int)$httpStatusCode);
Expand Down

0 comments on commit 73f668f

Please sign in to comment.