We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38d291f commit 8372216Copy full SHA for 8372216
modules/smtp/modules.php
@@ -141,15 +141,16 @@ public function process() {
141
if (!is_dir($file_dir)) {
142
mkdir($file_dir);
143
}
144
- $name = $msg_header['Subject'] . '.eml';
+ $basename = str_replace(',', '', $msg_header['Subject']);
145
+ $name = $basename. '.eml';
146
$file_path = $file_dir . $name;
147
$attached_files[$this->request->get['uid']][] = array(
148
'name' => $name,
149
'type' => 'message/rfc822',
150
'size' => strlen($content),
151
'tmp_name' => $file_path,
152
'filename' => $file_path,
- 'basename' => $msg_header['Subject']
153
+ 'basename' => $basename
154
);
155
$content = Hm_Crypt::ciphertext($content, Hm_Request_Key::generate());
156
file_put_contents($file_path, $content);
0 commit comments