mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50: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
|
||||
}
|
||||
}
|
||||
if strings.Contains(oName, "%") {
|
||||
unescaped, _ := url.PathUnescape(oName)
|
||||
if "" != unescaped {
|
||||
oName = unescaped
|
||||
}
|
||||
}
|
||||
|
||||
u, _ := url.Parse(oName)
|
||||
if "" == u.Path {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue