mirror of
https://github.com/crypto-pro-web/crypto-pro-php.git
synced 2025-01-18 11:25:50 +03:00
Поправил флаг в preg_replace
This commit is contained in:
parent
e8a5bfa96c
commit
2090e5cbce
@ -84,7 +84,7 @@ class CertificateHelper
|
||||
$commonName = null;
|
||||
if (preg_match('/CN="?(.+?)"?(?:,|$)/', $subjectName, $subjectMatch))
|
||||
{
|
||||
$commonName = preg_replace('/"{2}/g', '"', $subjectMatch[1]);
|
||||
$commonName = preg_replace('/"{2}/', '"', $subjectMatch[1]);
|
||||
}
|
||||
|
||||
return $commonName;
|
||||
|
Loading…
Reference in New Issue
Block a user