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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul <r.ferreira.fuentes@gmail.com>2022-07-22 15:20:23 +0300
committerRaul <r.ferreira.fuentes@gmail.com>2022-07-22 15:20:23 +0300
commitc6bcc4562486a87066f367539854606f543b108c (patch)
treedf35740096b642ee100532e23cfdd593a660de5c
parentc3bb47682592197ce40d6da633be2cf6dbc6bed0 (diff)
Fix incorrect HTML encoding of filenamebugfix/html_encoding_filename
Signed-off-by: Raul <r.ferreira.fuentes@gmail.com>
-rw-r--r--src/view/Office.vue2
-rw-r--r--templates/documents.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/view/Office.vue b/src/view/Office.vue
index b1211a2c..7fdf71e3 100644
--- a/src/view/Office.vue
+++ b/src/view/Office.vue
@@ -27,7 +27,7 @@
id="cool-loading-overlay"
:class="{ debug: debug }">
<EmptyContent v-if="!error" icon="icon-loading">
- {{ t('richdocuments', 'Loading {filename} …', { filename: basename }, undefined, { escape: false }) }}
+ {{ t('richdocuments', 'Loading {filename} …', { filename: basename }, 1, {escape: false}) }}
<template #desc>
<button @click="close">
{{ t('richdocuments', 'Cancel') }}
diff --git a/templates/documents.php b/templates/documents.php
index 2169d31b..71380c81 100644
--- a/templates/documents.php
+++ b/templates/documents.php
@@ -1,6 +1,6 @@
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>">
var richdocuments_permissions = '<?php p($_['permissions']) ?>';
- var richdocuments_title = '<?php p($_['title']) ?>';
+ var richdocuments_title = '<?php print_unescaped(addslashes($_['title'])) ?>';
var richdocuments_fileId = '<?php p($_['fileId']) ?>';
var richdocuments_token = '<?php p($_['token'] ? $_['token'] : "") ?>';
var richdocuments_token_ttl = <?php p($_['token_ttl'] ?: 0) ?>;