Skip to content

Commit

Permalink
Switch to non-greedy match so that subject CN extraction gets the lea…
Browse files Browse the repository at this point in the history
…st significant CN in cases where there is more than one CN (the jiscmail certificate looks like this, it turns out).
  • Loading branch information
iay committed Feb 21, 2008
1 parent 48010e5 commit f8e3c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
$issuerCN = $issuer;
}
}
if (/^\s*Subject:\s*.*CN=([a-z0-9\-\.]+).*$/) {
if (/^\s*Subject:\s*.*?CN=([a-z0-9\-\.]+).*$/) {
$subjectCN = $1;
# print "subjectCN = $subjectCN\n";
}
Expand Down

0 comments on commit f8e3c97

Please sign in to comment.