Fix client certificate login #16
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ function get_email_addresses_from_client_cert() {
|
||||||
|
|
||||||
// try SAN email addresses first
|
// try SAN email addresses first
|
||||||
$envNameBase = "SSL_CLIENT_SAN_Email";
|
$envNameBase = "SSL_CLIENT_SAN_Email";
|
||||||
for ($i = 1; $i <= $maxAddresses; $i++) {
|
for ($i = 0; $i <= $maxAddresses; $i++) {
|
||||||
jandd marked this conversation as resolved
|
|||||||
$envName = sprintf("%s_%d", $envNameBase, $i);
|
$envName = sprintf("%s_%d", $envNameBase, $i);
|
||||||
if (!array_key_exists($envName, $_SERVER)) {
|
if (!array_key_exists($envName, $_SERVER)) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue
SSL_Client_SAN_Email_0 is the first item, that was the reason for
9626e7f