mail : change the boundary format to be compatible with Orange

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3196 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-11-14 13:12:22 +00:00
parent 77a64e776c
commit ad1d98b397

View File

@@ -1314,7 +1314,7 @@ class mail
$data = openssl_random_pseudo_bytes (16);
$data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0010
$data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10
return "-----=_".vsprintf ('%s%s-%s-%s-%s-%s%s%s',
return "-----".vsprintf ('%s%s%s%s%s%s%s%s',
str_split (bin2hex ($data), 4));
}