Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fixed disabled prefix in case of unsafe import to conform to new attribute name pattern constraints
zadamb7b1324dd0b2
diff --git a/src/services/import/zip.js b/src/services/import/zip.jsindex ddbe476108..7dc61ef668 100644--- a/src/services/import/zip.js+++ b/src/services/import/zip.js@@ -158,7 +158,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {}if (taskContext.data.safeImport && attributeService.isAttributeDangerous(attr.type, attr.name)) {- attr.name = 'disabled-' + attr.name;+ attr.name = 'disabled:' + attr.name;}attributes.push(attr);