mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-27 13:57:46 +00:00
sanitize archs
This commit is contained in:
@@ -200,6 +200,12 @@ func apiPublishRepoOrSnapshot(c *gin.Context) {
|
|||||||
|
|
||||||
b.Distribution = utils.SanitizePath(b.Distribution)
|
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)
|
signer, err := getSigner(&b.Signing)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
AbortWithJSONError(c, http.StatusInternalServerError, fmt.Errorf("unable to initialize GPG signer: %s", err))
|
AbortWithJSONError(c, http.StatusInternalServerError, fmt.Errorf("unable to initialize GPG signer: %s", err))
|
||||||
|
|||||||
Reference in New Issue
Block a user