summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-09 08:39:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-09 08:39:51 +0000
commit1de2a0b7c7b99f5ea4c30b67e736caf63943ac19 (patch)
tree16debf9f0c5ba6587aff92809757de54365c15fd
parent0fe389b8417fe9ad17682a39cdd7c183005f5a5e (diff)
downloadredmine-1de2a0b7c7b99f5ea4c30b67e736caf63943ac19.tar.gz
redmine-1de2a0b7c7b99f5ea4c30b67e736caf63943ac19.zip
Ignore subversion root_url case when extracting relative url.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3138 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/repository/subversion.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb
index 0f9b56746..f84e4c089 100644
--- a/app/models/repository/subversion.rb
+++ b/app/models/repository/subversion.rb
@@ -84,6 +84,6 @@ class Repository::Subversion < Repository
# url = file:///var/svn/foo/bar
# => returns /bar
def relative_url
- @relative_url ||= url.gsub(Regexp.new("^#{Regexp.escape(root_url)}"), '')
+ @relative_url ||= url.gsub(Regexp.new("^#{Regexp.escape(root_url)}", Regexp::IGNORECASE), '')
end
end