File tree Expand file tree Collapse file tree 2 files changed +26
-10
lines changed Expand file tree Collapse file tree 2 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -75,23 +75,41 @@ func TestRenameReservedUsername(t *testing.T) {
7575 defer prepareTestEnv (t )()
7676
7777 reservedUsernames := []string {
78+ "." ,
79+ ".." ,
80+ ".well-known" ,
7881 "admin" ,
7982 "api" ,
83+ "assets" ,
8084 "attachments" ,
85+ "avatar" ,
8186 "avatars" ,
87+ "captcha" ,
88+ "commits" ,
89+ "debug" ,
90+ "error" ,
8291 "explore" ,
83- "help " ,
84- "install " ,
92+ "favicon.ico " ,
93+ "ghost " ,
8594 "issues" ,
8695 "login" ,
96+ "manifest.json" ,
8797 "metrics" ,
98+ "milestones" ,
99+ "new" ,
88100 "notifications" ,
89101 "org" ,
90102 "pulls" ,
103+ "raw" ,
91104 "repo" ,
92- "template " ,
93- "user " ,
105+ "repo-avatars " ,
106+ "robots.txt " ,
94107 "search" ,
108+ "serviceworker.js" ,
109+ "ssh_info" ,
110+ "swagger.v1.json" ,
111+ "user" ,
112+ "v2" ,
95113 }
96114
97115 session := loginUser (t , "user2" )
Original file line number Diff line number Diff line change @@ -576,6 +576,7 @@ var (
576576 "api" ,
577577 "assets" ,
578578 "attachments" ,
579+ "avatar" ,
579580 "avatars" ,
580581 "captcha" ,
581582 "commits" ,
@@ -584,26 +585,23 @@ var (
584585 "explore" ,
585586 "favicon.ico" ,
586587 "ghost" ,
587- "help" ,
588- "install" ,
589588 "issues" ,
590- "less" ,
591589 "login" ,
592590 "manifest.json" ,
593591 "metrics" ,
594592 "milestones" ,
595593 "new" ,
596594 "notifications" ,
597595 "org" ,
598- "plugins" ,
599596 "pulls" ,
600597 "raw" ,
601598 "repo" ,
599+ "repo-avatars" ,
602600 "robots.txt" ,
603601 "search" ,
604602 "serviceworker.js" ,
605- "stars " ,
606- "template " ,
603+ "ssh_info " ,
604+ "swagger.v1.json " ,
607605 "user" ,
608606 "v2" ,
609607 }
You can’t perform that action at this time.
0 commit comments