1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 20:24:24 +00:00

Reserve user/repo pattern for rss feature (#16323)

This commit is contained in:
6543 2021-07-01 17:13:20 +02:00 committed by GitHub
parent fc1d9629c6
commit 290f458d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1035,7 +1035,7 @@ func GetRepoInitFile(tp, name string) ([]byte, error) {
var (
reservedRepoNames = []string{".", ".."}
reservedRepoPatterns = []string{"*.git", "*.wiki"}
reservedRepoPatterns = []string{"*.git", "*.wiki", "*.rss", "*.atom"}
)
// IsUsableRepoName returns true when repository is usable

View File

@ -814,7 +814,7 @@ var (
"user",
}
reservedUserPatterns = []string{"*.keys", "*.gpg"}
reservedUserPatterns = []string{"*.keys", "*.gpg", "*.rss", "*.atom"}
)
// isUsableName checks if name is reserved or pattern of name is not allowed