diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-10 18:39:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-10 18:39:49 +0000 |
commit | 75582f80f85528865fa86d93ac57a44337742939 (patch) | |
tree | 638a165167764ddce0636294c4fcb30c3cfe0d1e /app/controllers/repositories_controller.rb | |
parent | 270e3a4345f21b339352c3ffefbaa4deddab47c9 (diff) | |
download | redmine-75582f80f85528865fa86d93ac57a44337742939.tar.gz redmine-75582f80f85528865fa86d93ac57a44337742939.zip |
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
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r-- | app/controllers/repositories_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 6cb85a8bc..fdfe936f7 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -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 |