aboutsummaryrefslogtreecommitdiffstats
path: root/services/packages/debian
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-08-05 10:59:52 +0200
committerGitHub <noreply@github.com>2023-08-05 10:59:52 +0200
commit2d3924d0e7c7fd164789b691168cead2d0171bc4 (patch)
tree0a09bda9407e7b65f14d1a20717ede1025783fc5 /services/packages/debian
parent9a8af925774327d96953a53c22efc42f24570b91 (diff)
downloadgitea-2d3924d0e7c7fd164789b691168cead2d0171bc4.tar.gz
gitea-2d3924d0e7c7fd164789b691168cead2d0171bc4.zip
Prevent newline errors with Debian packages (#26332)
Fixes #26313
Diffstat (limited to 'services/packages/debian')
-rw-r--r--services/packages/debian/repository.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/packages/debian/repository.go b/services/packages/debian/repository.go
index 37ba47bdc3..be82fbed6e 100644
--- a/services/packages/debian/repository.go
+++ b/services/packages/debian/repository.go
@@ -212,7 +212,7 @@ func buildPackagesIndices(ctx context.Context, ownerID int64, repoVersion *packa
}
addSeparator = true
- fmt.Fprint(w, pfd.Properties.GetByName(debian_module.PropertyControl))
+ fmt.Fprintf(w, "%s\n", strings.TrimSpace(pfd.Properties.GetByName(debian_module.PropertyControl)))
fmt.Fprintf(w, "Filename: pool/%s/%s/%s\n", distribution, component, pfd.File.Name)
fmt.Fprintf(w, "Size: %d\n", pfd.Blob.Size)