additional check in _generic netloc

Loic Dachary (loic@ceic.com)
Fri, 1 Nov 1996 12:59:33 -0100


Bomb if the URL is something like

http://host.com:8080foo/dir/file.html

This patch is for libwww-perl-5.04

*** _generic.pm	Fri Nov  1 14:56:45 1996
--- _generic.pm.~1~	Tue Oct  8 13:14:53 1996
***************
*** 164,171 ****
  	} elsif (defined $self->{'netloc'}) {
  	    $self->{'netloc'} =~ s/:$//;  # handle empty port spec
  	}
-     } elsif($nl =~ /:/) {
-       Carp::croak("port is not numeric in $nl");
      }
      $self->{'_str'} = '';
      $old;
--- 164,169 ----


	Thank you for this excellent library,

				Loic Dachary

				ECILA
				18 rue Pradier
				75019 Paris - France
				Tel: 33 01 42 08 74 95 Fax: 33 01 42 08 49 01
				e-mail: loic@ceic.com URL: http://www.ceic.com/