aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
authorDenys Konovalov <kontakt@denyskon.de>2024-09-02 20:36:24 +0200
committerGitHub <noreply@github.com>2024-09-02 18:36:24 +0000
commit83f37f630246e381eefd650fc2d4b1f3976ea882 (patch)
tree28a5de8f9c7d44c631caba05649b09aba41b909c /routers/web/user
parentac344497473f92c9a04f7863374dbb14e3c09d4e (diff)
downloadgitea-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.go2
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: