From fc3ee67b1f3eee644df0de10c44c36251cd3adea Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 11 Mar 2007 14:06:05 +0000 Subject: 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 --- app/controllers/repositories_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index a10dfcc22..acf03eb7b 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -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 -- cgit v1.2.3