Fixed: error when viewing a file diff from a revision view (only if repository url doesn't point to the root of the repository).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@528 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
270e3a4345
commit
75582f80f8
|
@ -108,7 +108,7 @@ private
|
|||
@project = Project.find(params[:id])
|
||||
@repository = @project.repository
|
||||
render_404 and return false unless @repository
|
||||
@path = params[:path].squeeze('/').gsub(/^\//, '') if params[:path]
|
||||
@path = params[:path].squeeze('/') if params[:path]
|
||||
@path ||= ''
|
||||
@rev = params[:rev].to_i if params[:rev] and params[:rev].to_i > 0
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
|
|
Loading…
Reference in New Issue