mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Convert network images to local supports URL-encoded local file names https://github.com/siyuan-note/siyuan/issues/9929
This commit is contained in:
parent
6e0524b235
commit
c4faf7c564
1 changed files with 1 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ func NetImg2LocalAssets(rootID, originalURL string) (err error) {
|
|||
u := string(dest)[7:]
|
||||
unescaped, _ := url.PathUnescape(u)
|
||||
if unescaped != u {
|
||||
// `Convert network images to local` supports URL-encoded local file names https://github.com/siyuan-note/siyuan/issues/9929
|
||||
u = unescaped
|
||||
}
|
||||
if !gulu.File.IsExist(u) || gulu.File.IsDir(u) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue