fix: escape QueryParam
All checks were successful
Build and Push Docker Image / Explore-Gitea-Actions (push) Successful in 54s

This commit is contained in:
Tim
2024-09-12 22:01:25 +02:00
parent 2d60ac4f6d
commit 3576a69b5c
2 changed files with 10 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
package mail;
import "me-fit/utils"
import (
"me-fit/utils"
"net/url"
)
templ Register(mailCode string) {
<!DOCTYPE html>
@@ -12,7 +15,7 @@ templ Register(mailCode string) {
</head>
<body>
<h4>Thank you for Sign Up!</h4>
<p>Click <a href={ templ.URL(utils.BaseUrl + "/auth/verify-email?token=" + mailCode) }>here</a> to verify your account.</p>
<p>Click <a href={ templ.URL(utils.BaseUrl + "/auth/verify-email?token=" + url.QueryEscape(mailCode)) }>here</a> to verify your account.</p>
<p>Kind regards</p>
</body>
</html>