mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
sanitize note title && attrs just to be sure
This commit is contained in:
@@ -160,6 +160,11 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
||||
attr.name = 'disabled:' + attr.name;
|
||||
}
|
||||
|
||||
if (taskContext.data.safeImport) {
|
||||
attr.name = htmlSanitizer.sanitize(attr.name);
|
||||
attr.value = htmlSanitizer.sanitize(attr.value);
|
||||
}
|
||||
|
||||
attributes.push(attr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user