[fix] not detecting the LAST in alternative names
This commit is contained in:
parent
4be09924bc
commit
d30f08f91f
|
@ -596,7 +596,7 @@ class m_ssl {
|
||||||
*/
|
*/
|
||||||
function parseAltNames($str) {
|
function parseAltNames($str) {
|
||||||
$mat = array();
|
$mat = array();
|
||||||
if (preg_match_all("#DNS:([^,]*),#", $str, $mat, PREG_PATTERN_ORDER)) {
|
if (preg_match_all("#DNS:([^,]*)#", $str, $mat, PREG_PATTERN_ORDER)) {
|
||||||
return implode("\n", $mat[1]);
|
return implode("\n", $mat[1]);
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in New Issue