mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-13 06:20:24 +00:00
The authentication provider's name (`$provider.DisplayName`) is not URL-encoded, so any illegal characters (e.g., '/') will be put in the link's href attribute verbatim. For example, if the provider's name is `foo/bar` (valid name), the href attribute will point to `/user/oauth2/foo/bar` instead of `/user/oauth2/foo%2Fbar`, resulting in a "404 Not found" error. This patch fixes this behaviour by URL-encoding the provider's DisplayName before appending it to the href attribute. Signed-off-by: doasu <me@doasu.dev> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10301 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: doasu <me@doasu.dev> Co-committed-by: doasu <me@doasu.dev> |
||
|---|---|---|
| .. | ||
| activate.tmpl | ||
| captcha.tmpl | ||
| change_passwd.tmpl | ||
| change_passwd_inner.tmpl | ||
| finalize_openid.tmpl | ||
| forgot_passwd.tmpl | ||
| grant.tmpl | ||
| grant_error.tmpl | ||
| link_account.tmpl | ||
| oauth_container.tmpl | ||
| oidc_wellknown.tmpl | ||
| prohibit_login.tmpl | ||
| reset_passwd.tmpl | ||
| signin.tmpl | ||
| signin_inner.tmpl | ||
| signin_openid.tmpl | ||
| signup.tmpl | ||
| signup_inner.tmpl | ||
| signup_openid_connect.tmpl | ||
| signup_openid_navbar.tmpl | ||
| signup_openid_register.tmpl | ||
| twofa.tmpl | ||
| twofa_scratch.tmpl | ||
| webauthn.tmpl | ||
| webauthn_error.tmpl | ||