🐛 网络图片转换为本地图片
链接参数处理异常 Fix https://github.com/siyuan-note/siyuan/issues/5014
This commit is contained in:
parent
35dd75cf68
commit
9b2ab2ed35
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@ func NetImg2LocalAssets(rootID string) (err error) {
|
|||
} else {
|
||||
name = path.Base(u)
|
||||
}
|
||||
if strings.Contains(name, "#") {
|
||||
name = name[:strings.Index(name, "#")]
|
||||
}
|
||||
name, _ = url.PathUnescape(name)
|
||||
ext := path.Ext(name)
|
||||
if "" == ext {
|
||||
|
|
Loading…
Add table
Reference in a new issue