Skip to content

Commit

Permalink
Merge pull request #29304 from owncloud/stable10-9fcca1a55e545edb52f9…
Browse files Browse the repository at this point in the history
…66ab8394664d5c15da6c

[stable10] fixed double escaping
  • Loading branch information
Vincent Petry authored Oct 20, 2017
2 parents a3b41f9 + 73f668f commit 478fdd7
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 478fdd7

Please sign in to comment.