Subject: | BUG - Handling of URL's with spaces |
OS: Windows Server 2003.
Perl: ActiveState Perl (817) 5.8.8
SVN::Web 0.46 via CPAN
When repo URL's have spaces, SVN::Web doesn't urlunescape them before
passing them onto SVN.
To fix this I added a urlunescape subroutine:
sub urlunescape
{
my $res = shift;
$res =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack("C",hex($1))/ge;
return $res;
}
and called this in the assignment to the path member of $cfg in the
subroutine run_cgi:
path => urlunescape("/$path"),