From 8b373f5ff0079e165c5ae6b62aa4b48f93c0be15 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Mon, 20 Apr 2026 13:19:43 +1000 Subject: [PATCH] Docs: DOC-3355 - URIs with non-Latin1 characters were returning an error --- modules/ROOT/pages/8.5.0-release-notes.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ROOT/pages/8.5.0-release-notes.adoc b/modules/ROOT/pages/8.5.0-release-notes.adoc index 1a48ade30d..e24e7dbd54 100644 --- a/modules/ROOT/pages/8.5.0-release-notes.adoc +++ b/modules/ROOT/pages/8.5.0-release-notes.adoc @@ -110,6 +110,13 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a // CCFR here. +=== URIs with non-Latin1 characters were returning an error +// #TINY-13938 + +Previously, inserting images with data URIs that contained non-Latin 1 characters, such as SVG data URIs with a byte order mark (BOM), caused {productname} to throw an `InvalidCharacterError`. This occurred because {productname} used the `btoa` function to encode data URIs to base64, and `btoa` does not support characters outside the Latin 1 range. The error could cause the editor to hang or fail to process the image. + +In {productname} {release-version}, data URIs are now encoded using `TextEncoder` before being passed to `btoa`, ensuring that non-Latin 1 characters are handled correctly. Images with data URIs containing such characters are now processed without errors. + [[security-fixes]] == Security fixes