1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-07-20 02:58:23 +00:00

Percent-encode org_name in links

If org_name contains spaces, the generated link will not work in some email clients unless it is percent-encoded
This commit is contained in:
Andrés Maldonado 2023-01-03 11:19:09 +01:00
commit 2897c24e83
3 changed files with 3 additions and 2 deletions

View file

@ -3,7 +3,7 @@ Join {{{org_name}}}
You have been invited to join the *{{org_name}}* organization.
Click here to join: {{url}}/#/accept-organization/?organizationId={{org_id}}&organizationUserId={{org_user_id}}&email={{email}}&organizationName={{org_name}}&token={{token}}
Click here to join: {{url}}/#/accept-organization/?organizationId={{org_id}}&organizationUserId={{org_user_id}}&email={{email}}&organizationName={{org_name_encoded}}&token={{token}}
If you do not wish to join this organization, you can safely ignore this email.