mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
sanitize note title && attrs just to be sure
This commit is contained in:
@@ -241,7 +241,7 @@ function getNoteTitle(filePath, replaceUnderscoresWithSpaces, noteMeta) {
|
||||
return noteMeta.title;
|
||||
} else {
|
||||
const basename = path.basename(removeTextFileExtension(filePath));
|
||||
if(replaceUnderscoresWithSpaces) {
|
||||
if (replaceUnderscoresWithSpaces) {
|
||||
return basename.replace(/_/g, ' ').trim();
|
||||
}
|
||||
return basename;
|
||||
|
||||
Reference in New Issue
Block a user