]> source.dussan.org Git - redmine.git/commitdiff
scm: switch to use shell quote with parameter in abstract adapter target().
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 23:50:59 +0000 (23:50 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 23:50:59 +0000 (23:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5906 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/abstract_adapter.rb

index 81a24af819f8ca84607867ab507db90d4ba81d96..afff2ffd7af6e9dcf8b76300b29cc170cc93eb90 100644 (file)
@@ -184,10 +184,14 @@ module Redmine
           info ? info.root_url : nil
         end
 
-        def target(path)
+        def target(path, sq=true)
           path ||= ''
           base = path.match(/^\//) ? root_url : url
-          shell_quote("#{base}/#{path}".gsub(/[?<>\*]/, ''))
+          str = "#{base}/#{path}".gsub(/[?<>\*]/, '')
+          if sq
+            str = shell_quote(str)
+          end
+          str
         end
 
         def logger