summaryrefslogtreecommitdiffstats
path: root/modules/task/task.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/task/task.go')
-rw-r--r--modules/task/task.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/task/task.go b/modules/task/task.go
index 0685aa23d7..1c0a87e1f6 100644
--- a/modules/task/task.go
+++ b/modules/task/task.go
@@ -74,7 +74,7 @@ func CreateMigrateTask(doer, u *models.User, opts base.MigrateOptions) (*models.
if err != nil {
return nil, err
}
- opts.CloneAddr = util.SanitizeURLCredentials(opts.CloneAddr, true)
+ opts.CloneAddr = util.NewStringURLSanitizer(opts.CloneAddr, true).Replace(opts.CloneAddr)
opts.AuthPasswordEncrypted, err = secret.EncryptSecret(setting.SecretKey, opts.AuthPassword)
if err != nil {
return nil, err