diff options
author | Denys Konovalov <kontakt@denyskon.de> | 2024-09-02 20:36:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 18:36:24 +0000 |
commit | 83f37f630246e381eefd650fc2d4b1f3976ea882 (patch) | |
tree | 28a5de8f9c7d44c631caba05649b09aba41b909c /routers/web/user | |
parent | ac344497473f92c9a04f7863374dbb14e3c09d4e (diff) | |
download | gitea-83f37f630246e381eefd650fc2d4b1f3976ea882.tar.gz gitea-83f37f630246e381eefd650fc2d4b1f3976ea882.zip |
Remove urls from translations (#31950)
Part of #27700
Removes all URLs from translation strings to easy up changing them in
the future and to exclude people injecting malicious URLs through
translations. First measure as long as #24402 is out of scope.
Diffstat (limited to 'routers/web/user')
-rw-r--r-- | routers/web/user/setting/account.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/setting/account.go b/routers/web/user/setting/account.go index 563f39f0c8..7f2dece416 100644 --- a/routers/web/user/setting/account.go +++ b/routers/web/user/setting/account.go @@ -85,7 +85,7 @@ func AccountPost(ctx *context.Context) { case errors.Is(err, password.ErrComplexity): ctx.Flash.Error(password.BuildComplexityError(ctx.Locale)) case errors.Is(err, password.ErrIsPwned): - ctx.Flash.Error(ctx.Tr("auth.password_pwned")) + ctx.Flash.Error(ctx.Tr("auth.password_pwned", "https://haveibeenpwned.com/Passwords")) case password.IsErrIsPwnedRequest(err): ctx.Flash.Error(ctx.Tr("auth.password_pwned_err")) default: |