diff --git a/README.md b/README.md index 39caa24..fb2a4b9 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ Thank you very much. ### Test Server -Make sure you have [golang](https://go.dev) v1.20 or newer and [just](https://just.systems/man/en/) installed. +Make sure you have [golang](https://go.dev) v1.21 or newer and [just](https://just.systems/man/en/) installed. run `just dev` now this pages should work: diff --git a/html/html.go b/html/html.go index 4470411..ff8b6b4 100644 --- a/html/html.go +++ b/html/html.go @@ -2,8 +2,8 @@ package html import ( _ "embed" - "html/template" "net/http" + "text/template" // do not use html/template here, we sanitize the message before passing it to the template "codeberg.org/codeberg/pages/server/context" "github.com/microcosm-cc/bluemonday" diff --git a/server/handler/handler_sub_domain.go b/server/handler/handler_sub_domain.go index d365ea4..e7cb3a6 100644 --- a/server/handler/handler_sub_domain.go +++ b/server/handler/handler_sub_domain.go @@ -147,7 +147,7 @@ func handleSubDomain(log zerolog.Logger, ctx *context.Context, giteaClient *gite // Couldn't find a valid repo/branch html.ReturnErrorPage(ctx, - fmt.Sprintf("could not find a valid repository or branch: %s", targetRepo), + fmt.Sprintf("could not find a valid repository or branch for repository: %s", targetRepo), http.StatusNotFound) }