Skip to content

Commit 7b9806c

Browse files
committed
[BUGFIX] Fixed error when locally loading and embedding images with a whitespace in the uri
1 parent 7eda38f commit 7b9806c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Service/AbstractMailerService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function attachHtmlInlineImage($match) {
130130
}
131131
}
132132

133-
return $imgTagStart.$this->processedMessage->embed(\Swift_Image::fromPath($path)).'"'.$imgTagEnd;
133+
return $imgTagStart.$this->processedMessage->embed(\Swift_Image::fromPath(urldecode($path))).'"'.$imgTagEnd;
134134
}
135135

136136
/**

0 commit comments

Comments
 (0)