mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-15 21:13:02 +00:00
nocaps: Fix WOPI load.
Change-Id: I538be45897902e9d8ff63d85b1e486767dacbb2d Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93484 Tested-by: Jan Holesovsky <kendy@collabora.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
This commit is contained in:
@ -907,7 +907,10 @@ std::string WopiStorage::loadStorageFileToLocal(const Authorization& auth,
|
||||
setLoaded(true);
|
||||
|
||||
// Now return the jailed path.
|
||||
return Poco::Path(getJailPath(), getFileInfo().getFilename()).toString();
|
||||
if (LOOLWSD::NoCapsForKit)
|
||||
return getRootFilePath();
|
||||
else
|
||||
return Poco::Path(getJailPath(), getFileInfo().getFilename()).toString();
|
||||
}
|
||||
}
|
||||
catch (const Poco::Exception& pexc)
|
||||
|
Reference in New Issue
Block a user