]> source.dussan.org Git - redmine.git/commitdiff
Fixed: error when viewing a file diff from a revision view (only if repository url...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 10 May 2007 18:39:49 +0000 (18:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 10 May 2007 18:39:49 +0000 (18:39 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@528 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/repositories_controller.rb

index 6cb85a8bcbf38c074e5b72861668e194fcaebbae..fdfe936f7b0ef39158c19b2d530fc9eda948835c 100644 (file)
@@ -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