Fixed invalid key parameter
All checks were successful
Automated Container Build / build-and-push (push) Successful in 42s

This commit is contained in:
Elijah 2026-05-24 11:03:56 -07:00
parent 61eafc5fac
commit 4ce5a91a3a

View file

@ -54,7 +54,7 @@ export default function OnlyOfficeEditor({ file, type, onClose }: OnlyOfficeEdit
const config = {
document: {
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,
url: fileUrl,
},