1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Server: Fixes #5229: Published notes that contain non-alphabetical characters could end up being truncated

This commit is contained in:
Laurent Cozic 2021-07-25 11:13:27 +01:00
parent 6499ca8e61
commit dd1f90819c

View File

@ -218,7 +218,7 @@ async function renderNote(share: Share, note: NoteEntity, resourceInfos: Resourc
return {
body: bodyHtml,
mime: 'text/html',
size: bodyHtml.length,
size: Buffer.byteLength(bodyHtml, 'utf-8'),
};
}