[GH-ISSUE #167] [bug] 人为修改 mark 内容后无法读取 #128

Closed
opened 2026-03-02 03:37:56 +03:00 by kerem · 0 comments
Owner

Originally created by @ZhangTianrong on GitHub (May 1, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/167

详细描述这个 Bug

此处没有进行 encodeURIComponent 导致 mark 的 content 在面板中修改后直接原样存储进数据库,读取时遇到 URIError: URI malformed 导致无法读取。

NoteGen 版本

v0.13.5

操作系统

Windows

报错日志

No response

Originally created by @ZhangTianrong on GitHub (May 1, 2025). Original GitHub issue: https://github.com/codexu/note-gen/issues/167 ### 详细描述这个 Bug [此处](https://github.com/codexu/note-gen/blob/2c8d152f076e97cad7ce7c97601d4a5eb866794c/src/db/marks.ts#L62)没有进行 `encodeURIComponent` 导致 mark 的 content 在面板中修改后直接原样存储进数据库,读取时遇到 `URIError: URI malformed` 导致无法读取。 ### NoteGen 版本 v0.13.5 ### 操作系统 Windows ### 报错日志 _No response_
kerem closed this issue 2026-03-02 03:37:56 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#128
No description provided.