Subject: | Correction to regex in ResourceList.pm (HTTP::DAV) |
Date: | Thu, 26 Mar 2015 08:22:11 +0100 |
To: | bug-HTTP-DAV [...] rt.cpan.org |
From: | Andreas Scherrer <ascherrer [...] gmail.com> |
The regex in the following lines of ResourceList.pm in the HTTP:DAV module
should *not* have the "g" flag at the end (line 160 in
my version):
$r =~ s/\/*$/\//g; # Add a trailing slash
$u =~ s/\/*$/\//g; # Add a tailing slash
See http://stackoverflow.com/q/9353836/254868 for an explanation why.
I am running on Freebsd 10.1 with perl 5.18. But the issue exists for a
long time, I first tried to report it in February 2012.
Kind regards
andreas scherrer