mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
sanitize archs
This commit is contained in:
@@ -200,6 +200,12 @@ func apiPublishRepoOrSnapshot(c *gin.Context) {
|
||||
|
||||
b.Distribution = utils.SanitizePath(b.Distribution)
|
||||
|
||||
var archs []string
|
||||
for _, arch := range b.Architectures {
|
||||
archs = append(archs, utils.SanitizePath(arch))
|
||||
}
|
||||
b.Architectures = archs
|
||||
|
||||
signer, err := getSigner(&b.Signing)
|
||||
if err != nil {
|
||||
AbortWithJSONError(c, http.StatusInternalServerError, fmt.Errorf("unable to initialize GPG signer: %s", err))
|
||||
|
||||
Reference in New Issue
Block a user