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:
2
mail.php
2
mail.php
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user