mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 16:47:30 +00:00
#3229 disallow repository name . and ..
Since . and .. has browser automatical behaviors, we need to disallow those names.
This commit is contained in:
parent
401bf944ef
commit
e30c701386
|
@ -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"}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue