##// END OF EJS Templates
Fixed: error when viewing a file diff from a revision view (only if repository url doesn't point to the root of the repository)....
Jean-Philippe Lang -
r525:75582f80f855
parent child
Show More
@@ -108,7 +108,7 private
108 108 @project = Project.find(params[:id])
109 109 @repository = @project.repository
110 110 render_404 and return false unless @repository
111 @path = params[:path].squeeze('/').gsub(/^\//, '') if params[:path]
111 @path = params[:path].squeeze('/') if params[:path]
112 112 @path ||= ''
113 113 @rev = params[:rev].to_i if params[:rev] and params[:rev].to_i > 0
114 114 rescue ActiveRecord::RecordNotFound
General Comments 0
You need to be logged in to leave comments. Login now