Skip to content
Snippets Groups Projects
Commit fc3ee67b authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

send a 404 when trying to access an unexisting repository

git-svn-id: http://redmine.rubyforge.org/svn/trunk@328 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent a54a1552
Branches
Tags
No related merge requests found
......@@ -60,6 +60,7 @@ private
def find_project
@project = Project.find(params[:id])
@repository = @project.repository
render_404 and return false unless @repository
@path = params[:path].squeeze('/').gsub(/^\//, '') if params[:path]
@path ||= ''
@rev = params[:rev].to_i if params[:rev] and params[:rev].to_i > 0
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment