[fix] not detecting the LAST in alternative names

This commit is contained in:
Benjamin Sonntag 2015-03-04 17:54:14 +01:00
parent 4be09924bc
commit d30f08f91f
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ class m_ssl {
*/
function parseAltNames($str) {
$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]);
} else {
return "";