Skip Menu |

This queue is for tickets about the SVN-Web CPAN distribution.

Report information
The Basics
Id: 17282
Status: resolved
Priority: 0/
Queue: SVN-Web

People
Owner: Nobody in particular
Requestors: corion [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.42
Fixed in: (no value)



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