Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: escape on resource filename (#1892)
Athurg Gooth1c07ae2650b5
diff --git a/web/src/utils/resource.ts b/web/src/utils/resource.tsindex e217e87af..079536cb7 100644--- a/web/src/utils/resource.ts+++ b/web/src/utils/resource.ts@@ -3,5 +3,5 @@ export const getResourceUrl = (resource: Resource, withOrigin = true) => {return resource.externalLink;}- return `${withOrigin ? window.location.origin : ""}/o/r/${resource.id}/${resource.publicId}/${resource.filename}`;+ return `${withOrigin ? window.location.origin : ""}/o/r/${resource.id}/${resource.publicId}/${encodeURIComponent(resource.filename)}`;};