@@ 3695-3698 (lines=4) @@ | ||
3692 | { |
|
3693 | preg_match_all('/(src|background)=["\'](.*)["\']/Ui', $message, $images); |
|
3694 | if (array_key_exists(2, $images)) { |
|
3695 | if (strlen($basedir) > 1 && '/' != substr($basedir, -1)) { |
|
3696 | // Ensure $basedir has a trailing / |
|
3697 | $basedir .= '/'; |
|
3698 | } |
|
3699 | foreach ($images[2] as $imgindex => $url) { |
|
3700 | // Convert data URIs into embedded images |
|
3701 | //e.g. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" |
|
@@ 3740-3742 (lines=3) @@ | ||
3737 | $directory = ''; |
|
3738 | } |
|
3739 | $cid = hash('sha256', $url) . '@phpmailer.0'; // RFC2392 S 2 |
|
3740 | if (strlen($basedir) > 1 and '/' != substr($basedir, -1)) { |
|
3741 | $basedir .= '/'; |
|
3742 | } |
|
3743 | if (strlen($directory) > 1 and '/' != substr($directory, -1)) { |
|
3744 | $directory .= '/'; |
|
3745 | } |