aboutsummaryrefslogtreecommitdiff
path: root/internal/db
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-21 00:12:38 +0800
committerGitHub <noreply@github.com>2020-03-21 00:12:38 +0800
commita43fc9ad17d4337dd26b9b8d867470ca8c548b41 (patch)
treed72df012123e792f66824b67e9425fdb3685af52 /internal/db
parentc69a38652da09cb10bfe31714b6b39fec3f8ede8 (diff)
ipynb: sanitize rendered HTML (#5996)
* ipynb: sanitize rendered HTML Fixes #5170 * Remove hardcode URL * Add tests
Diffstat (limited to 'internal/db')
-rw-r--r--internal/db/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/user.go b/internal/db/user.go
index 0c793170..8678c1c5 100644
--- a/internal/db/user.go
+++ b/internal/db/user.go
@@ -498,7 +498,7 @@ func NewGhostUser() *User {
}
var (
- reservedUsernames = []string{"explore", "create", "assets", "css", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
+ reservedUsernames = []string{"-", "explore", "create", "assets", "css", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
reservedUserPatterns = []string{"*.keys"}
)