When a person trying to do something that requires registration on GForum, such as sending a private message to another user, get's bumped to the GComm login screen, the "do=some_command" param in the query string get's snipped.
Here's the code:
# -------------------------------------------------------------------
my (@args) = @_;
GT::Plugins->action(STOP);
if ($IN->param('do') eq 'logout') {
return;
}
auth_init();
my $return = $CFG->{cgi_root_url};
$return =~ s|/?$|/gforum.cgi?|;
$IN->delete('guest');
$IN->delete('do');
$return .= $IN->query_string;
my $url = comm_login_url(return_to => $return);
print $IN->redirect($url);
return;
}
Why is this?
Here's the code:
Code:
sub do_login { # -------------------------------------------------------------------
my (@args) = @_;
GT::Plugins->action(STOP);
if ($IN->param('do') eq 'logout') {
return;
}
auth_init();
my $return = $CFG->{cgi_root_url};
$return =~ s|/?$|/gforum.cgi?|;
$IN->delete('guest');
$IN->delete('do');
$return .= $IN->query_string;
my $url = comm_login_url(return_to => $return);
print $IN->redirect($url);
return;
}
Why is this?