From c461575af3a0b6c3260a613f99748703e621b6ce Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sun, 2 Aug 2026 12:30:05 -0700 Subject: [PATCH] fix: bad path escape in subpath archive download (#38749) (#38750) Backport #38749 Co-authored-by: TheFox0x7 --- 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 6b25afddd8..3f696b724a 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)}}