From 5f173bdab3d3b6b625bdd56d640332a1ed98bcd0 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Mon, 9 Dec 2024 18:44:08 +0100 Subject: [PATCH] Add `-` as reserved user used in routers such as https://codeberg.org/forgejo/forgejo/src/commit/af640ac4d4f3c2cbd93e7f23a9615be65f0b4611/routers/init.go#L185 --- models/user/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/user/user.go b/models/user/user.go index d49fbdd2fc..ec9b35964d 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -586,6 +586,7 @@ var ( reservedUsernames = []string{ ".", "..", + "-", // used by certain web routes ".well-known", "api", // gitea api