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
This commit is contained in:
Jean-Philippe Lang 2007-03-11 14:06:05 +00:00
parent a54a15523b
commit fc3ee67b1f
1 changed files with 1 additions and 0 deletions

View File

@ -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