4 require URI::_userpass;
5 @ISA=qw(URI::_server URI::_userpass);
9 sub default_port { 21 }
11 sub path { shift->path_query(@_) } # XXX
13 sub _user { shift->SUPER::user(@_); }
14 sub _password { shift->SUPER::password(@_); }
19 my $user = $self->_user(@_);
20 $user = "anonymous" unless defined $user;
27 my $pass = $self->_password(@_);
28 unless (defined $pass) {
29 my $user = $self->user;
30 if ($user eq 'anonymous' || $user eq 'ftp') {
31 # anonymous ftp login password
32 # If there is no ftp anonymous password specified
33 # then we'll just use 'anonymous@'
34 # We don't try to send the read e-mail address because:
35 # - We want to remain anonymous
36 # - We want to stop SPAM
37 # - We don't want to let ftp sites to discriminate by the user,
38 # host, country or ftp client being used.