[Bps-public-commit] r12205 - in sd/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Fri May 9 20:11:53 EDT 2008


Author: sartak
Date: Fri May  9 20:11:28 2008
New Revision: 12205

Modified:
   sd/trunk/   (props changed)
   sd/trunk/lib/App/SD/Replica/Hiveminder.pm

Log:
 r55506 at onn:  sartak | 2008-05-09 20:11:07 -0400
 URI::_generic doesn't have userinfo, so safeguard that call


Modified: sd/trunk/lib/App/SD/Replica/Hiveminder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/Hiveminder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/Hiveminder.pm	Fri May  9 20:11:28 2008
@@ -32,7 +32,7 @@
         or die "Can't parse hiveminder server spec";
     my $uri = URI->new($server);
     my ( $username, $password );
-    if ( my $auth = $uri->userinfo ) {
+    if ( $uri->can('userinfo') && (my $auth = $uri->userinfo) ) {
         ( $username, $password ) = split /:/, $auth, 2;
         $uri->userinfo(undef);
     }



More information about the Bps-public-commit mailing list