MDL-48779 MNet: multibyte substr in certificate generation

Using core_text::substr instead of substr for trimming certificate
data. Is needed for sites with long unicode sitename to prevent
breaking line between unicode pair.
This commit is contained in:
Vadim Dvorovenko 2015-01-14 23:39:14 +07:00
parent eb1dc9fab9
commit 28d20df9ba

View File

@ -394,7 +394,7 @@ function mnet_generate_keypair($dn = null, $days=28) {
);
foreach ($dnlimits as $key => $length) {
$dn[$key] = substr($dn[$key], 0, $length);
$dn[$key] = core_text::substr($dn[$key], 0, $length);
}
// ensure we remove trailing slashes