TagSpaces is an offline, open source, document manager with tagging support
fixing issue with filename containing special characters
Ilian Sapundshiev10da0e5be440
diff --git a/app/utils/paths.js b/app/utils/paths.jsindex a8f9f97b8..bb6482d9f 100644--- a/app/utils/paths.js+++ b/app/utils/paths.js@@ -161,7 +161,12 @@ export function extractTitle(entryPath: string, isDirectory?: boolean = false) {// case: "title1 [tag1 tag2] title2"return title.slice(0, beginTagContainer) + title.slice(endTagContainer + 1, title.length);}- return decodeURIComponent(title);+ try {+ title = decodeURIComponent(title);+ } catch (e) {+ console.warn('Decoding URI failed on: ' + title + ' with ' + e);+ }+ return title;}export function extractTagsAsObjects(filePath: string): Array<Tag> {