Hi,
Did you change fileman.cgi? if so, make sure it hasn't print "content-type:text/html\n\n"; command.
Anyway, you can change the scripts a litte bit:
my %header_args;
# Check to see if we need to authenticate.
if ($fm->{cfg}->{username} and $fm->{cfg}->{password}) {
...
if () {
....
}
# Logged in ok, save username, password into cookie
elsif ($fm->{cgi}->{login}) {
%header_args = (-cookie => [
$fm->{in}->cookie ( -name => 'username', -value => $username, -expires => ''),
$fm->{in}->cookie ( -name => 'password', -value => $encrypted, -expires => ''),
]);
}
}
print $fm->{in}->header(%header_args);
$fm->process();
That should work.
TheStone.
B.
Did you change fileman.cgi? if so, make sure it hasn't print "content-type:text/html\n\n"; command.
Anyway, you can change the scripts a litte bit:
my %header_args;
# Check to see if we need to authenticate.
if ($fm->{cfg}->{username} and $fm->{cfg}->{password}) {
...
if () {
....
}
# Logged in ok, save username, password into cookie
elsif ($fm->{cgi}->{login}) {
%header_args = (-cookie => [
$fm->{in}->cookie ( -name => 'username', -value => $username, -expires => ''),
$fm->{in}->cookie ( -name => 'password', -value => $encrypted, -expires => ''),
]);
}
}
print $fm->{in}->header(%header_args);
$fm->process();
That should work.
TheStone.
B.