Skip to content

Commit 23ce0a0

Browse files
author
Jared Hancock
committed
oops: Fix file key matchup in emails
1 parent 35a23be commit 23ce0a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/class.file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function getName() {
9494
}
9595

9696
function getKey() {
97-
return strtolower($this->ht['key']);
97+
return $this->ht['key'];
9898
}
9999

100100
function getSignature() {

include/class.mailer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function($match) use ($domain, $mime, $self) {
175175
return $match[0];
176176
$mime->addHTMLImage($file->getData(),
177177
$file->getType(), $file->getName(), false,
178-
$file->getKey().'@'.$domain);
178+
$match[1].'@'.$domain);
179179
// Don't re-attach the image below
180180
unset($self->attachments[$file->getId()]);
181181
return $match[0].'@'.$domain;

0 commit comments

Comments
 (0)