While `repo.OriginalURL` is supposed to be sanitized, with username and passwords removed, it appears that is not always the case, and sometimes we may encounter original URLs that aren't sanitized. While that is possibly a historical artifact, we should still treat it with care. As such, before displaying `repo.OriginalURL` as an info flash when syncing a pull repository, sanitize the URL first, to be on the safe side. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu> |
||
|---|---|---|
| .. | ||
| api | ||
| common | ||
| install | ||
| private | ||
| utils | ||
| web | ||
| init.go | ||