Commit 75582f80 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: error when viewing a file diff from a revision view (only if repository…

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
parent 270e3a43
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment