Commit 45e208cb1995a4ce22b31e5ca5c533929532098b
Exists in
master
and in
4 other branches
Merge pull request #2287 from Partugal/patch-add-more-restricts-to-project-name
added more denied project names
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/project.rb
... | ... | @@ -179,7 +179,7 @@ class Project < ActiveRecord::Base |
179 | 179 | end |
180 | 180 | |
181 | 181 | def repo_name |
182 | - denied_paths = %w(gitolite-admin groups projects dashboard help ) | |
182 | + denied_paths = %w(gitolite-admin admin dashboard groups help profile projects search) | |
183 | 183 | |
184 | 184 | if denied_paths.include?(path) |
185 | 185 | errors.add(:path, "like #{path} is not allowed") | ... | ... |