diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-04-29 10:50:09 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-04-29 10:50:09 +0300 |
commit | bbff63c808f451a9b4d3cde86cf9cbbd50436a8b (patch) | |
tree | 4cb5e7b40a8fbbf0f665b873d297591ef58f64bb /lib | |
parent | c45b2e42388c4bc3a148ebd69da25eb752701287 (diff) |
Disable remote image insertion on public links
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/WopiController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index 60b742db..522b9516 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -204,7 +204,7 @@ class WopiController extends Controller { 'LastModifiedTime' => Helper::toISO8601($file->getMTime()), 'SupportsRename' => !$isVersion, 'UserCanRename' => !$isPublic && !$isVersion, - 'EnableInsertRemoteImage' => true, + 'EnableInsertRemoteImage' => !$isPublic, 'EnableShare' => $file->isShareable() && !$isVersion, 'HideUserList' => '', 'DisablePrint' => $wopi->getHideDownload(), |