Fix for attachments with duplicate filenames, thanks to @revaxarts, fixes #15
This commit is contained in:
parent
104869b669
commit
8d85d51975
|
|
@ -2421,7 +2421,7 @@ class PHPMailer {
|
||||||
if ($directory == '.') {
|
if ($directory == '.') {
|
||||||
$directory = '';
|
$directory = '';
|
||||||
}
|
}
|
||||||
$cid = 'cid:' . md5($filename);
|
$cid = 'cid:' . md5($url);
|
||||||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
||||||
$mimeType = self::_mime_types($ext);
|
$mimeType = self::_mime_types($ext);
|
||||||
if ( strlen($basedir) > 1 && substr($basedir, -1) != '/') { $basedir .= '/'; }
|
if ( strlen($basedir) > 1 && substr($basedir, -1) != '/') { $basedir .= '/'; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue