Skip to content

Commit

Permalink
Merge pull request 'hotfix/request-token' (#1) from hotfix/request-to…
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Sep 11, 2024
2 parents 334d2f8 + 2504c4d commit 86fff44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class="onlyoffice-inviewer"
data-forceedit="<?php p($_["forceEdit"]) ?>"></div>

<?php if (!empty($_["documentServerUrl"])) { ?>
<script nonce="<?php p(base64_encode($_["requesttoken"])) ?>"
<script nonce="<?php p(\OC::$server->get(\OC\Security\CSP\ContentSecurityPolicyNonceManager::class)->getNonce()) ?>"
src="<?php p($_["documentServerUrl"]) ?>web-apps/apps/api/documents/api.js" type="text/javascript"></script>
<?php } ?>

Expand Down

0 comments on commit 86fff44

Please sign in to comment.