From 602d095b81bba5f69a3a7106ee93478536a1eb43 Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Sun, 2 Aug 2026 21:02:23 +0200 Subject: [PATCH] fix: bad path escape in subpath archive download (#38749) --- templates/repo/view_content.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/view_content.tmpl b/templates/repo/view_content.tmpl index 393dd175e07..b42690b6d20 100644 --- a/templates/repo/view_content.tmpl +++ b/templates/repo/view_content.tmpl @@ -97,8 +97,8 @@ {{if and (not $.DisableDownloadSourceArchives) $.RefFullName}}
- {{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "ZIP"}} - {{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "TAR.GZ"}} + {{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "ZIP"}} + {{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "TAR.GZ"}} {{end}} {{if and .Repository.CanContentChange (not $isTreePathRoot)}}