mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
#3229 disallow repository name . and ..
Since . and .. has browser automatical behaviors, we need to disallow those names.
This commit is contained in:
1 parent
401bf944ef
commit
e30c701386
1 file changed
+1
-1
+1
-1
@@ -518,7 +518,7 @@ func (repo *Repository) CloneLink() (cl *CloneLink) {
|
||||
}
|
||||
|
||||
var (
|
||||
reservedNames = []string{"debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new"}
|
||||
reservedNames = []string{"debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
|
||||
reservedPatterns = []string{"*.git", "*.keys", "*.wiki"}
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user