mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 23:50:04 -05:00
🐛 网络图片转换为本地图片 链接参数处理异常 Fix https://github.com/siyuan-note/siyuan/issues/5014
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user