##// END OF EJS Templates
scm: filesystem: prevent exception raises if path encoding is incorrect....
Toshi MARUYAMA -
r5053:e53c8cfc1baa
parent child
Show More
@@ -60,7 +60,9 module Redmine
60 trgt = scm_iconv(@path_encoding, 'UTF-8', trgt_utf8)
60 trgt = scm_iconv(@path_encoding, 'UTF-8', trgt_utf8)
61 Dir.new(trgt).each do |e1|
61 Dir.new(trgt).each do |e1|
62 e_utf8 = scm_iconv('UTF-8', @path_encoding, e1)
62 e_utf8 = scm_iconv('UTF-8', @path_encoding, e1)
63 relative_path_utf8 = format_path_ends((format_path_ends(path,false,true) + e_utf8),false,false)
63 next if e_utf8.blank?
64 relative_path_utf8 = format_path_ends(
65 (format_path_ends(path,false,true) + e_utf8),false,false)
64 t1_utf8 = target(relative_path_utf8)
66 t1_utf8 = target(relative_path_utf8)
65 t1 = scm_iconv(@path_encoding, 'UTF-8', t1_utf8)
67 t1 = scm_iconv(@path_encoding, 'UTF-8', t1_utf8)
66 relative_path = scm_iconv(@path_encoding, 'UTF-8', relative_path_utf8)
68 relative_path = scm_iconv(@path_encoding, 'UTF-8', relative_path_utf8)
General Comments 0
You need to be logged in to leave comments. Login now