0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 10:02:14 +02:00

Use shorter hashes for CID values, see #1691

This commit is contained in:
Marcus Bointon 2019-10-20 20:49:36 +02:00
parent a0adbb2a7a
commit 9282a06c8e

View File

@ -4022,7 +4022,8 @@ class PHPMailer
if ('.' === $directory) {
$directory = '';
}
$cid = hash('sha256', $url) . '@phpmailer.0'; // RFC2392 S 2
// RFC2392 S 2
$cid = substr(hash('sha256', $data), 0, 32) . '@phpmailer.0';
if (strlen($basedir) > 1 && '/' !== substr($basedir, -1)) {
$basedir .= '/';
}