From abb9d17e79405cbee8bb98887b457d2a7e215ba9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Sep 2025 10:16:31 +0900 Subject: fix(backend): duplicate slashes in some URLs --- backend/account/icon.go | 4 ++-- backend/admin/templates/games.html | 6 +++--- backend/admin/templates/users.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'backend') diff --git a/backend/account/icon.go b/backend/account/icon.go index 4f195c6..9e5e379 100644 --- a/backend/account/icon.go +++ b/backend/account/icon.go @@ -34,8 +34,8 @@ func FetchIcon( return fmt.Errorf("failed to fetch user icon (uid=%d): %w", userID, err) } // Download user icon file. - filePath := fmt.Sprintf("/files/img/%s/icon%s", url.PathEscape(user.Username), path.Ext(avatarURL)) - if err := downloadFile(ctx, fortee.Endpoint+avatarURL, "/data"+filePath); err != nil { + filePath := fmt.Sprintf("files/img/%s/icon%s", url.PathEscape(user.Username), path.Ext(avatarURL)) + if err := downloadFile(ctx, fortee.Endpoint+avatarURL, "/data/"+filePath); err != nil { return fmt.Errorf("failed to fetch user icon (uid=%d): %w", userID, err) } // Save user icon path. diff --git a/backend/admin/templates/games.html b/backend/admin/templates/games.html index 402c702..d642f07 100644 --- a/backend/admin/templates/games.html +++ b/backend/admin/templates/games.html @@ -11,15 +11,15 @@