Commit fa9c00b7 authored by tmaruyama's avatar tmaruyama

scm: filesystem: prevent exception raises if path encoding is incorrect.

git-svn-id: https://svn.redmine.org/redmine/trunk@5173 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8f585193
......@@ -60,7 +60,9 @@ module Redmine
trgt = scm_iconv(@path_encoding, 'UTF-8', trgt_utf8)
Dir.new(trgt).each do |e1|
e_utf8 = scm_iconv('UTF-8', @path_encoding, e1)
relative_path_utf8 = format_path_ends((format_path_ends(path,false,true) + e_utf8),false,false)
next if e_utf8.blank?
relative_path_utf8 = format_path_ends(
(format_path_ends(path,false,true) + e_utf8),false,false)
t1_utf8 = target(relative_path_utf8)
t1 = scm_iconv(@path_encoding, 'UTF-8', t1_utf8)
relative_path = scm_iconv(@path_encoding, 'UTF-8', relative_path_utf8)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment