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:
authorJulius Härtl <jus@bitgrid.net>2019-10-24 13:51:50 +0300
committerJulius Härtl <jus@bitgrid.net>2019-10-24 13:51:50 +0300
commit101c6bd1d4c40431e0de84c0897b3bfa3cf491bb (patch)
treee54c32788bebf0f317b6c7d14f07b136e2763941 /templates
parentfd062b87984c6af49dad2259fd3da56c2d178620 (diff)
Properly hand over user data and notify the viewer about loading
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'templates')
-rw-r--r--templates/documents.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/documents.php b/templates/documents.php
index a64a0f51..38379f1b 100644
--- a/templates/documents.php
+++ b/templates/documents.php
@@ -5,7 +5,7 @@
var richdocuments_token = '<?php p($_['token']) ?>';
var richdocuments_urlsrc = '<?php p($_['urlsrc']) ?>';
var richdocuments_path = '<?php p($_['path']) ?>';
- var richdocuments_userId = <?php isset($_['userId']) ? p('\'' . $_['userId'] . '\'') : p('null') ?>;
+ var richdocuments_userId = <?php isset($_['userId']) ? print_unescaped('\'' . \OCP\Util::sanitizeHTML($_['userId']) . '\'') : print_unescaped('null') ?>;
var richdocuments_instanceId = '<?php p($_['instanceId']) ?>';
var richdocuments_canonical_webroot = '<?php p($_['canonical_webroot']) ?>';
var richdocuments_directEdit = <?php isset($_['direct']) ? p('true') : p('false') ?>;