Skip to content

Commit

Permalink
Fixed access failure on logout.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Apr 23, 2008
1 parent 1add59e commit 22003c4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Bric/App/AccessHandler.pm
Expand Up @@ -210,7 +210,6 @@ B<Notes:> NONE.

sub logout_handler {
my $r = shift;

my $ret = eval {
# Set up the user's session data.
Bric::App::Session::setup_user_session($r);
Expand All @@ -226,18 +225,18 @@ sub logout_handler {
# server #2
if (scalar $r->args =~ /goodbye/) {
$r->custom_response(HTTP_FORBIDDEN,
"https://$hostname$ssl_port/login");
"https://$hostname$ssl_port/login/");
} elsif ($r->get_server_port == &SSL_PORT) {
$r->custom_response(HTTP_MOVED_TEMPORARILY,
"/logout?goodbye");
return HTTP_MOVED_TEMPORARILY;
} else {
$r->custom_response(HTTP_MOVED_TEMPORARILY,
"https://$hostname$ssl_port/logout?goodbye");
"https://$hostname$ssl_port/logout/?goodbye");
return HTTP_MOVED_TEMPORARILY;
}
} else {
$r->custom_response(HTTP_FORBIDDEN, "/login");
$r->custom_response(HTTP_FORBIDDEN, '/login/');
}
return HTTP_FORBIDDEN;
};
Expand Down

0 comments on commit 22003c4

Please sign in to comment.