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:
parent
a54a15523b
commit
fc3ee67b1f
|
@ -60,6 +60,7 @@ private
|
||||||
def find_project
|
def find_project
|
||||||
@project = Project.find(params[:id])
|
@project = Project.find(params[:id])
|
||||||
@repository = @project.repository
|
@repository = @project.repository
|
||||||
|
render_404 and return false unless @repository
|
||||||
@path = params[:path].squeeze('/').gsub(/^\//, '') if params[:path]
|
@path = params[:path].squeeze('/').gsub(/^\//, '') if params[:path]
|
||||||
@path ||= ''
|
@path ||= ''
|
||||||
@rev = params[:rev].to_i if params[:rev] and params[:rev].to_i > 0
|
@rev = params[:rev].to_i if params[:rev] and params[:rev].to_i > 0
|
||||||
|
|
Loading…
Reference in New Issue