Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/PHPMailer/PHPMailer
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Dec 6, 2014
2 parents ba4ece8 + 58c862c commit 4a46a82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions class.phpmailer.php
Expand Up @@ -2911,11 +2911,7 @@ public function msgHTML($message, $basedir = '', $advanced = false)
}
$cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2
if ($this->addStringEmbeddedImage($data, $cid, '', 'base64', $match[1])) {
$message = preg_replace(
'/' . $images[1][$imgindex] . '=["\']' . preg_quote($url, '/') . '["\']/Ui',
$images[1][$imgindex] . '="cid:' . $cid . '"',
$message
);
$message = str_replace($images[0][$imgindex], $images[1][$imgindex] . '="cid:' . $cid . '"', $message);
}
} elseif (!preg_match('#^[A-z]+://#', $url)) {
// Do not change urls for absolute images (thanks to corvuscorax)
Expand Down
2 changes: 1 addition & 1 deletion class.smtp.php
Expand Up @@ -730,7 +730,7 @@ protected function parseHelloFields($type)
} else {
$name = array_shift($fields);
if ($name == 'SIZE') {
$fields = $fields[0];
$fields = ($fields) ? $fields[0] : 0;
}
}
$this->server_caps[$name] = ($fields ? $fields : true);
Expand Down

0 comments on commit 4a46a82

Please sign in to comment.