mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
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:
parent
eb1dc9fab9
commit
28d20df9ba
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user