scm: filesystem: fix loss non ASCII paths if path_encoding is '' (#2274).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5629 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-04 05:02:01 +00:00
parent 7575989c78
commit d6a483684b
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ module Redmine
def initialize(url, root_url=nil, login=nil, password=nil,
path_encoding=nil)
@url = with_trailling_slash(url)
@path_encoding = path_encoding || 'UTF-8'
@path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding
end
def format_path_ends(path, leading=true, trailling=true)