Subject: | svnweb-install won't install from directories which contain regex-metachars |
I looked through the source code of svnweb-install to investigate pboins
problem with File::Copy and found the following:
...
find({ wanted => sub {
my $dst_path = $File::Find::name;
$dst_path =~ s/$path/$to/;
...
This will fail if C< $path > contains a regex metacharacter, like {}[]()
or whatever else the filesystem allows. The fix is to use quotemeta:
find({ wanted => sub {
my $dst_path = $File::Find::name;
$dst_path =~ s/\Q$path\E/$to/;
I haven't tested either my assumption or the fix, but I'm confident in
both ;-)
-max