mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Improve HTML clipping https://github.com/siyuan-note/siyuan/issues/14178
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user