summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-07-12 04:02:38 +0000
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-07-12 04:02:38 +0000
commitd34e2415c84f55c3505331bd6fd2a5cc40d37990 (patch)
treeed7c438962930edfb99c5844c3d9011174254ed6
parent48139ccfef87a39e20e1fbecebcbf88ecb303dfa (diff)
downloadcacert-boardvoting-d34e2415c84f55c3505331bd6fd2a5cc40d37990.tar.gz
cacert-boardvoting-d34e2415c84f55c3505331bd6fd2a5cc40d37990.tar.xz
cacert-boardvoting-d34e2415c84f55c3505331bd6fd2a5cc40d37990.zip
fix Email address certificate lookup
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@66 d4452222-2f33-11de-9270-010000000000
-rw-r--r--database.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/database.php b/database.php
index 0de7504..0948949 100644
--- a/database.php
+++ b/database.php
@@ -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;