summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;