mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 Improve HTML clipping https://github.com/siyuan-note/siyuan/issues/14178
This commit is contained in:
parent
baef55f135
commit
fc289d3866
1 changed files with 7 additions and 0 deletions
|
|
@ -78,6 +78,13 @@ func extensionCopy(c *gin.Context) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if strings.Contains(oName, "%") {
|
||||||
|
unescaped, _ := url.PathUnescape(oName)
|
||||||
|
if "" != unescaped {
|
||||||
|
oName = unescaped
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
u, _ := url.Parse(oName)
|
u, _ := url.Parse(oName)
|
||||||
if "" == u.Path {
|
if "" == u.Path {
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue