diff options
author | Otto Richter <git@otto.splvs.net> | 2024-12-09 18:44:08 +0100 |
---|---|---|
committer | Otto Richter <git@otto.splvs.net> | 2024-12-09 18:45:05 +0100 |
commit | 5f173bdab3d3b6b625bdd56d640332a1ed98bcd0 (patch) | |
tree | 98176182988ab818da23e7ad6e1ea166fc3a54ee /models | |
parent | Merge pull request 'chore(ci): set the milestone when a pull request is open ... (diff) | |
download | forgejo-5f173bdab3d3b6b625bdd56d640332a1ed98bcd0.tar.xz forgejo-5f173bdab3d3b6b625bdd56d640332a1ed98bcd0.zip |
Add `-` as reserved user
used in routers such as
https://codeberg.org/forgejo/forgejo/src/commit/af640ac4d4f3c2cbd93e7f23a9615be65f0b4611/routers/init.go#L185
Diffstat (limited to 'models')
-rw-r--r-- | models/user/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |