From 2b0601d741c8dd267a3a252e700eb27eef6c616b Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Wed, 19 Apr 2023 08:32:53 -0400 Subject: [PATCH] Fix sanitizing name in library creator --- src/components/mediaLibraryCreator/mediaLibraryCreator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/mediaLibraryCreator/mediaLibraryCreator.js b/src/components/mediaLibraryCreator/mediaLibraryCreator.js index d3adb15e5b..8fe961ce5a 100644 --- a/src/components/mediaLibraryCreator/mediaLibraryCreator.js +++ b/src/components/mediaLibraryCreator/mediaLibraryCreator.js @@ -86,7 +86,9 @@ function initEditor(page, collectionTypeOptions) { const index = this.selectedIndex; if (index != -1) { - const name = this.options[index].innerHTML.replace('*', '').replace('&', '&'); + const name = this.options[index].innerHTML + .replaceAll('*', '') + .replaceAll('&', '&'); $('#txtValue', dlg).val(name); } }