From b1a90f72862b0a3323d740c4a95f49a4652b36d1 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Sat, 11 Jan 2020 17:25:16 +0200 Subject: [PATCH] Hide credentials when submitting migration (#9102) (#9704) through API. Same fix, using form.CloneAddr instead of opts.CloneAddr. Co-authored-by: Jordan --- routers/api/v1/repo/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 7eb397b68c2..0c1db2c226e 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -436,7 +436,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) { repo, err := models.CreateRepository(ctx.User, ctxUser, models.CreateRepoOptions{ Name: opts.RepoName, Description: opts.Description, - OriginalURL: opts.CloneAddr, + OriginalURL: form.CloneAddr, IsPrivate: opts.Private, IsMirror: opts.Mirror, Status: models.RepositoryBeingMigrated,