mirror of
https://github.com/go-gitea/gitea
synced 2024-11-10 12:14:25 +00:00
Reserve user/repo pattern for rss feature (#16323)
This commit is contained in:
parent
fc1d9629c6
commit
290f458d46
@ -1035,7 +1035,7 @@ func GetRepoInitFile(tp, name string) ([]byte, error) {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
reservedRepoNames = []string{".", ".."}
|
reservedRepoNames = []string{".", ".."}
|
||||||
reservedRepoPatterns = []string{"*.git", "*.wiki"}
|
reservedRepoPatterns = []string{"*.git", "*.wiki", "*.rss", "*.atom"}
|
||||||
)
|
)
|
||||||
|
|
||||||
// IsUsableRepoName returns true when repository is usable
|
// IsUsableRepoName returns true when repository is usable
|
||||||
|
@ -814,7 +814,7 @@ var (
|
|||||||
"user",
|
"user",
|
||||||
}
|
}
|
||||||
|
|
||||||
reservedUserPatterns = []string{"*.keys", "*.gpg"}
|
reservedUserPatterns = []string{"*.keys", "*.gpg", "*.rss", "*.atom"}
|
||||||
)
|
)
|
||||||
|
|
||||||
// isUsableName checks if name is reserved or pattern of name is not allowed
|
// isUsableName checks if name is reserved or pattern of name is not allowed
|
||||||
|
Loading…
Reference in New Issue
Block a user