Re: Draft of announcement message

J.E. Fritz (FRITZ@gems.vcu.edu)
Sun, 04 Jun 1995 23:22:35 -0400 (EDT)


There is a small bug in URI::URL 2.9:  A relative path made absolute by abs
lacks a leading slash character. E.g.,  the program:

   use URI::URL;
   my $base= new URI::URL 'http://host/directory/file';
   my $relative= new URI::URL 'file', $base;
   my $result= $relative->abs;
   print "Base path: ",$base->path,"\n";
   print "Result path: ",$result->path,"\n";

prints:

   Base path: /directory/file
   Result path: directory/file


-Fritz


Here's a diff:

*** OLD.URL.pm	Wed May 31 17:44:41 1995
--- URL.pm	Wed May 31 17:45:28 1995
***************
*** 901,907 ****
          }
      }
  
!     $embed->{path} = join('/', @newpath) . ($isdir ? '/' : '');
      $embed;
  }
  
--- 901,907 ----
          }
      }
  
!     $embed->{path} = '/' . join('/', @newpath) . ($isdir ? '/' : '');
      $embed;
  }