Fix client certificate login #16

Merged
jandd merged 4 commits from fix-client-certificate-login into main 2024-05-20 10:35:31 +00:00
Showing only changes of commit 9626e7f6fc - Show all commits

View file

@ -30,7 +30,7 @@ function get_email_addresses_from_client_cert() {
// try SAN email addresses first
$envNameBase = "SSL_CLIENT_SAN_Email";
for ($i = 1; $i <= $maxAddresses; $i++) {
for ($i = 0; $i <= $maxAddresses; $i++) {
jandd marked this conversation as resolved
Review

SSL_Client_SAN_Email_0 is the first item, that was the reason for 9626e7f

SSL_Client_SAN_Email_0 is the first item, that was the reason for 9626e7f
$envName = sprintf("%s_%d", $envNameBase, $i);
if (!array_key_exists($envName, $_SERVER)) {
break;