summaryrefslogtreecommitdiffstats
path: root/models/migrations/v180.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v180.go')
-rw-r--r--models/migrations/v180.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v180.go b/models/migrations/v180.go
index c2a3ff961a..a0471e151f 100644
--- a/models/migrations/v180.go
+++ b/models/migrations/v180.go
@@ -64,7 +64,7 @@ func removeCredentials(payload string) (string, error) {
opts.AuthPassword = ""
opts.AuthToken = ""
- opts.CloneAddr = util.SanitizeURLCredentials(opts.CloneAddr, true)
+ opts.CloneAddr = util.NewStringURLSanitizer(opts.CloneAddr, true).Replace(opts.CloneAddr)
confBytes, err := json.Marshal(opts)
if err != nil {