UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 662082ea authored by Benjamin Allison's avatar Benjamin Allison
Browse files

Update api.php to fix email parser regex for non-standard email ordering in usmc emails

parent d7c19889
1 merge request!115bug fix, features added.
......@@ -59,7 +59,7 @@ function get_info_from_cert($raw_cert)
$result["user_name"] = $user_email[2];
$result["user_email"] = $user_email[1];
} else{
preg_match('/^email:((.*)@(.*)), .*$/',$subjectAltName,$user_email);
preg_match('/^.*email:((.*)@(.*)),? ?.*$/',$subjectAltName,$user_email);
$result["user_type"] = "unk";
$result["user_mail_domain"] = $user_email[3];
$result["user_name"] = $user_email[2];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment