subject line of certificate not quite correct

git-svn-id: http://svn.cacert.cl/Software/Voting/vote@67 d4452222-2f33-11de-9270-010000000000
This commit is contained in:
community.cacert.org 2009-07-13 02:12:30 +00:00
parent d34e2415c8
commit c589d304ed

View file

@ -129,6 +129,7 @@ BODY;
if ($user) return $user; if ($user) return $user;
++$d; ++$d;
} }
$dn=$_SERVER['SSL_CLIENT_S_DN'];
if (preg_match_all('/\/emailAddress=([^\/]*)/',$dn,$reg,PREG_SET_ORDER)) { if (preg_match_all('/\/emailAddress=([^\/]*)/',$dn,$reg,PREG_SET_ORDER)) {
foreach ($reg as $emailarr) { foreach ($reg as $emailarr) {
$stmt->execute(array($emailarr[1])); $stmt->execute(array($emailarr[1]));