]> source.dussan.org Git - redmine.git/commit
scm: mercurial: escape any filenames by urlescape (#2664, #7064).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 5 Jan 2011 15:02:24 +0000 (15:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 5 Jan 2011 15:02:24 +0000 (15:02 +0000)
commitad18cfda32debd5e183baf167af386d797365ffa
treeed2e9b8268da6014386bc159e221f37ed3f10674
parent6ad68ae0277c9e2a1d09d46f7b2db8dc8e1310df
scm: mercurial: escape any filenames by urlescape (#2664, #7064).

In Mercurial, filename is not UTF-8 but byte-string.
So it should be escaped to UTF-8-safe string before parsing as XML document.

NOTE: Mercurial's {|obfuscate} filter cannot be used here, because it treats
filename as encoded by HGENCODING.

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4633 e93f8b46-1217-0410-a6f0-8f06a7374b81
lib/redmine/scm/adapters/mercurial/hg-template-0.9.5.tmpl
lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl
lib/redmine/scm/adapters/mercurial_adapter.rb