mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
nodejs: encode path in url for wopi
This commit is contained in:
@ -150,7 +150,7 @@ const getDefaultAction = async function getDefaultAction(DocManager, ext) {
|
||||
|
||||
// get the action url
|
||||
const getActionUrl = function getActionUrl(host, userAddress, action, filename) {
|
||||
const WOPISrc = `${host}/wopi/files/${filename}@${userAddress}`;
|
||||
const WOPISrc = `${host}/wopi/files/${encodeURIComponent(filename)}@${encodeURIComponent(userAddress)}`;
|
||||
return `${action.urlsrc.replace(/<.*&>/g, '')}WOPISrc=${encodeURIComponent(WOPISrc)}`;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user