Skip to content
Snippets Groups Projects
Commit 23ce0a0d authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix file key matchup in emails

parent 35a23bec
Branches
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ class AttachmentFile { ...@@ -94,7 +94,7 @@ class AttachmentFile {
} }
function getKey() { function getKey() {
return strtolower($this->ht['key']); return $this->ht['key'];
} }
function getSignature() { function getSignature() {
......
...@@ -175,7 +175,7 @@ class Mailer { ...@@ -175,7 +175,7 @@ class Mailer {
return $match[0]; return $match[0];
$mime->addHTMLImage($file->getData(), $mime->addHTMLImage($file->getData(),
$file->getType(), $file->getName(), false, $file->getType(), $file->getName(), false,
$file->getKey().'@'.$domain); $match[1].'@'.$domain);
// Don't re-attach the image below // Don't re-attach the image below
unset($self->attachments[$file->getId()]); unset($self->attachments[$file->getId()]);
return $match[0].'@'.$domain; return $match[0].'@'.$domain;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment