small fixes

This commit is contained in:
crapStone 2023-11-16 00:48:56 +01:00
parent 2eaa9f82c2
commit d48315ab57
No known key found for this signature in database
GPG Key ID: D74B82E7CDD863FE
3 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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"

View File

@ -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: <code>%s</code>", targetRepo),
fmt.Sprintf("could not find a valid repository or branch for repository: <code>%s</code>", targetRepo),
http.StatusNotFound)
}