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:
parent
a0adbb2a7a
commit
9282a06c8e
@ -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 .= '/';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user