projects
/
mirror
/
userdir-ldap-cgi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
releasing package userdir-ldap-cgi version 0.3.42
[mirror/userdir-ldap-cgi.git]
/
logout.cgi
diff --git
a/logout.cgi
b/logout.cgi
index
11167b4
..
19c7c37
100755
(executable)
--- a/
logout.cgi
+++ b/
logout.cgi
@@
-1,23
+1,22
@@
#!/usr/bin/perl
#!/usr/bin/perl
-# (c) 1999 Debian and Randolph Chung. Licensed under the GPL. <tausq@debian.org>
+# $Id: logout.cgi,v 1.2 1999/09/26 01:20:39 tausq Exp $
+# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
+# Copyright (c) 2011, 2015 Peter Palfrader
use lib '.';
use strict vars;
#use Apache::Registry;
use CGI;
use Util;
use lib '.';
use strict vars;
#use Apache::Registry;
use CGI;
use Util;
-use Net::LDAP qw(
:all
);
+use Net::LDAP qw(
LDAP_SUCCESS LDAP_PROTOCOL_ERROR
);
my %config = &Util::ReadConfigFile;
my $proto = ($ENV{HTTPS} ? "https" : "http");
my $query = new CGI;
my %config = &Util::ReadConfigFile;
my $proto = ($ENV{HTTPS} ? "https" : "http");
my $query = new CGI;
-my $id = $query->param('id');
my $authtoken = $query->param('authtoken');
my $authtoken = $query->param('authtoken');
-&Util::ClearAuthToken($authtoken);
-my $doneurl = $query->param('done') || "$config{websearchurl}";
-
&Util::ClearAuthToken($authtoken);
&Util::ClearAuthToken($authtoken);
+my $doneurl = $config{websearchurl};
print "Location: $proto://$ENV{SERVER_NAME}/$doneurl\n\n";
print "Location: $proto://$ENV{SERVER_NAME}/$doneurl\n\n";