diff options
author | mrsdizzie <info@mrsdizzie.com> | 2019-12-19 04:49:48 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-19 17:49:48 +0800 |
commit | e57f7639379c8561a8109b35d171a1540d75577e (patch) | |
tree | b2cd63ec4a4d1625a1e5a485d3177a995c515437 /models/migrations/v41.go | |
parent | 4147cc91ed07666613fa84cd8caffde9b1a8b916 (diff) | |
download | gitea-e57f7639379c8561a8109b35d171a1540d75577e.tar.gz gitea-e57f7639379c8561a8109b35d171a1540d75577e.zip |
Add migration to sanitize repository original_url (#9423)
* Add migration to sanitize repository original_url
During a large code move in #6200 the OriginalURL field was
accidentially changed to be populated with the CloneAddr field which
will contain the username and/or password provided during a migration.
This behavior was fixed in previous PR #9097 and this migration will
remove any authentication details that were stored in the database
between those two.
* use net/url to rebuild URL instead of strings.Replace
* Update models/migrations/migrations.go
* changes per lunny
* make fmt
Diffstat (limited to 'models/migrations/v41.go')
0 files changed, 0 insertions, 0 deletions