diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-21 00:44:40 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-21 00:44:40 +0000 |
commit | 2e25835e7c01e639947c796e36e5e94896165671 (patch) | |
tree | 627220e091adafbed8bc6ef15eebd9c855143fd4 | |
parent | 3e32b510183e1db4b892a0ddfb372a9e9320781e (diff) |
Fixing logout bug.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@666 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/Form.pm | 2 | ||||
-rwxr-xr-x | bin/login.pl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index dd3db02c..1dee7692 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -307,7 +307,7 @@ sub redirect { my ($self, $msg) = @_; use List::Util qw(first); - if ($self->{callback}) { + if ($self->{callback} || !$msg){ main::redirect(); } else { diff --git a/bin/login.pl b/bin/login.pl index d807ed26..11a5e82a 100755 --- a/bin/login.pl +++ b/bin/login.pl @@ -348,7 +348,7 @@ sub login { sub logout { - $form->{callback} = "$form->{script}?path=$form->{path}&login=$form->{login}"; + $form->{callback} = ""; $form->{endsession} = 1; Session::session_destroy($form); $form->redirect; |