Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Mar 2015 22:51:10 +0100
From:      andreas scherrer <ascherrer@gmail.com>
To:        perl@freebsd.org
Subject:   Fwd: Fwd: Correction to regex in ResourceList.pm (HTTP::DAV)
Message-ID:  <55132DCE.80806@gmail.com>
In-Reply-To: <4F8F2357.2070506@gmail.com>
References:  <4F8F2357.2070506@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------000805090201050502040800
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

To whom it may concern.


-------- Forwarded Message --------
Subject: Fwd: Correction to regex in ResourceList.pm (HTTP::DAV)
Date: Wed, 18 Apr 2012 22:25:59 +0200
From: andreas scherrer <ascherrer@gmail.com>
To: pcollins@cpan.org

Dear Patrick Collins

As I believe this problem persists I have created a small patch.


Kind regards
andreas scherrer

-------- Original Message --------
Subject: Correction to regex in ResourceList.pm (HTTP::DAV)
Date: Mon, 20 Feb 2012 21:59:20 +0100
From: andreas scherrer <ascherrer@gmail.com>
To: pcollins@cpan.org

Dear Patrick Collins

I am writing to you because you are listed as the author of HTTP::DAV on
CPAN.

I believe 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 (older) 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.


Kind regards
andreas scherrer

-- 
People who push both buttons should get their wish.




--------------000805090201050502040800
Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0";
 name="ResourceList.pm.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="ResourceList.pm.patch"

LS0tIC91c3IvbG9jYWwvbGliL3Blcmw1L3NpdGVfcGVybC81LjE0LjIvSFRUUC9EQVYvT1JJ
R0lOQUxfUmVzb3VyY2VMaXN0LnBtCTIwMTItMDQtMTggMjE6NDQ6NTkuMDAwMDAwMDAwICsw
MjAwCisrKyAvdXNyL2xvY2FsL2xpYi9wZXJsNS9zaXRlX3BlcmwvNS4xNC4yL0hUVFAvREFW
L1Jlc291cmNlTGlzdC5wbQkyMDEyLTA0LTE4IDIxOjQ2OjE0LjAwMDAwMDAwMCArMDIwMApA
QCAtMTU2LDggKzE1Niw4IEBACiAgICAgICAgICAjIGUuZy4gdT0vYSAgcj0vYS9iL2MudHh0
CiAgICAgICAgICBteSAkciA9ICRyZXNvdXJjZV91cmktPmNhbm9uaWNhbCgpOwogICAgICAg
ICAgbXkgJHUgPSAkdXJsLT5jYW5vbmljYWwoKTsKLSAgICAgICAgICRyID1+IHMvXC8qJC9c
Ly9nOyAjIEFkZCBhIHRyYWlsaW5nIHNsYXNoCi0gICAgICAgICAkdSA9fiBzL1wvKiQvXC8v
ZzsgIyBBZGQgYSB0YWlsaW5nIHNsYXNoCisgICAgICAgICAkciA9fiBzL1wvKiQvXC8vOyAj
IEFkZCBhIHRyYWlsaW5nIHNsYXNoCisgICAgICAgICAkdSA9fiBzL1wvKiQvXC8vOyAjIEFk
ZCBhIHRhaWxpbmcgc2xhc2gKICAgICAgICAgIGlmICgkdSA9fiAvXFEkci8gKSB7CiAKICAg
ICAgICAgICAgIG15IEBsb2NrcyA9ICRyZXNvdXJjZS0+Z2V0X2xvY2tzKC1vd25lZD0+JG93
bmVkKTsKCg==
--------------000805090201050502040800--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55132DCE.80806>