fix Email address certificate lookup

git-svn-id: http://svn.cacert.cl/Software/Voting/vote@66 d4452222-2f33-11de-9270-010000000000
reality
community.cacert.org 15 years ago
parent 48139ccfef
commit d34e2415c8

@ -117,13 +117,13 @@ BODY;
$stmt->execute(array($_SERVER['REMOTE_USER']));
$user = $stmt->fetch();
if ($user) return $user;
if ($_SERVER['SSL_CLIENT_S_DN_EMAIL']) {
$stmt->execute(array($_SERVER['SSL_CLIENT_S_DN_EMAIL']));
if ($_SERVER['SSL_CLIENT_S_DN_Email']) {
$stmt->execute(array($_SERVER['SSL_CLIENT_S_DN_Email']));
$user = $stmt->fetch();
if ($user) return $user;
}
$d=0;
while ($email=$_SERVER["SSL_CLIENT_S_DN_EMAIL_$d"]) {
while ($email=$_SERVER["SSL_CLIENT_S_DN_Email_$d"]) {
$stmt->execute(array($email));
$user = $stmt->fetch();
if ($user) return $user;

Loading…
Cancel
Save