Adds configuration settings to limit valid repository path (#1415).

git-svn-id: http://svn.redmine.org/redmine/trunk@13573 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-11-08 10:52:59 +00:00
parent 34bb545e4f
commit 13f9ccaed8
9 changed files with 145 additions and 9 deletions

View File

@@ -192,6 +192,14 @@ class Repository::Cvs < Repository
@current_revision_number = nil
end
protected
# Overrides Repository#validate_repository_path to validate
# against root_url attribute.
def validate_repository_path(attribute=:root_url)
super(attribute)
end
private
# Returns the next revision number to assign to a CVS changeset