This commit is contained in:
Daniel 2025-03-29 17:50:16 +08:00
parent b6562b1346
commit e8ce39c778
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 7 additions and 6 deletions

View file

@ -76,6 +76,7 @@ func extensionCopy(c *gin.Context) {
uploaded := map[string]string{}
for originalName, file := range form.File {
oName, err := url.PathUnescape(originalName)
unescaped := oName
if clippingSym && strings.Contains(oName, "img-loading.svg") {
continue
@ -145,7 +146,7 @@ func extensionCopy(c *gin.Context) {
break
}
uploaded[oName] = "assets/" + fName
uploaded[unescaped] = "assets/" + fName
}
luteEngine := util.NewLute()