freebsd-ports/www/w3mir/files/patch-aa
Andrey A. Chernov 8ef08b59c5 Fix for new libwww
Submitted by:	Takuya TSUMURA <tsumura@jwri.osaka-u.ac.jp>
2000-01-08 00:44:24 +00:00

20 lines
452 B
Plaintext

--- w3http.pm.orig Fri May 28 23:35:19 1999
+++ w3http.pm Sat Jan 8 03:35:34 2000
@@ -133,13 +133,13 @@
use URI::URL;
# Suplementary libwww-perl:
-sub URI::URL::_generic::basename {
+sub URI::_generic::basename {
my $self = shift;
- my @p = $self->path_components;
+ my @p = $self->path_segments;
my $old = $p[-1];
if (@_) {
splice(@p, -1, 1, shift);
- $self->path_components(@p)
+ $self->path_segments(@p);
}
$old;
}