diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-11 14:06:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-11 14:06:05 +0000 |
commit | fc3ee67b1f3eee644df0de10c44c36251cd3adea (patch) | |
tree | 40f95b4f9c525610bbafe77590f8d045534b9bbf /app/controllers/repositories_controller.rb | |
parent | a54a15523b1fe25f51521fdf305b60b705b4986e (diff) | |
download | redmine-fc3ee67b1f3eee644df0de10c44c36251cd3adea.tar.gz redmine-fc3ee67b1f3eee644df0de10c44c36251cd3adea.zip |
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
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r-- | app/controllers/repositories_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |