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