From 23ce0a0d88142a80d6ea322bb98c8f1c6728f5e0 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 3 Mar 2014 18:26:48 -0600 Subject: [PATCH] oops: Fix file key matchup in emails --- include/class.file.php | 2 +- include/class.mailer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.file.php b/include/class.file.php index 9fdca5bee..e5a3db128 100644 --- a/include/class.file.php +++ b/include/class.file.php @@ -94,7 +94,7 @@ class AttachmentFile { } function getKey() { - return strtolower($this->ht['key']); + return $this->ht['key']; } function getSignature() { diff --git a/include/class.mailer.php b/include/class.mailer.php index 3db4a3623..51694795e 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -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; -- GitLab