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
make selection a link
[mirror/userdir-ldap-cgi.git]
/
fetchkey.cgi
diff --git
a/fetchkey.cgi
b/fetchkey.cgi
index
8e88502
..
d2d5881
100755
(executable)
--- a/
fetchkey.cgi
+++ b/
fetchkey.cgi
@@
-1,19
+1,29
@@
-#!/usr/bin/perl
+#!/usr/bin/perl
-wT
+# $Id: fetchkey.cgi,v 1.4 2004/11/18 14:23:05 joey Exp $
+# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
+
+use lib '.';
use strict;
use CGI;
use Util;
# Global settings...
my %config = &Util::ReadConfigFile;
use strict;
use CGI;
use Util;
# Global settings...
my %config = &Util::ReadConfigFile;
+for my $key (keys %config) {
+ $key =~ /(.*)/;
+ $config{$key} = $1;
+}
my $query = new CGI;
print "Content-type: text/plain\n\n";
my $fp = $query->param('fingerprint');
my $query = new CGI;
print "Content-type: text/plain\n\n";
my $fp = $query->param('fingerprint');
+$fp =~ /^([A-Fa-f0-9]+)$/;
+$fp = $1;
if ($fp) {
if ($fp) {
- my $key = &Util::FetchKey($fp);
+ my $key = &Util::FetchKey($fp
, 0
);
if ($key) {
print $key;
} else {
if ($key) {
print $key;
} else {