Fixed invalid key parameter
All checks were successful
Automated Container Build / build-and-push (push) Successful in 42s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 42s
This commit is contained in:
parent
61eafc5fac
commit
4ce5a91a3a
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ export default function OnlyOfficeEditor({ file, type, onClose }: OnlyOfficeEdit
|
||||||
const config = {
|
const config = {
|
||||||
document: {
|
document: {
|
||||||
fileType: file.name.split('.').pop() || 'docx',
|
fileType: file.name.split('.').pop() || 'docx',
|
||||||
key: `${file.path}_${new Date(file.mod_time).getTime()}`,
|
key: `${file.path.replace(/[^a-zA-Z0-9\-_=]/g, '_')}_${new Date(file.mod_time).getTime()}`.substring(0, 128),
|
||||||
title: file.name,
|
title: file.name,
|
||||||
url: fileUrl,
|
url: fileUrl,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Reference in a new issue