alecpl
2012-04-19 b4f95a9387a391054ad37c7cfc988ed66adc4b44
- Fix attachment name regression (#1488446)


1 files modified
5 ■■■■■ changed files
program/steps/mail/get.inc 5 ●●●●● patch | view | raw | blame | history
program/steps/mail/get.inc
@@ -151,11 +151,10 @@
        $filename = rcube_label('htmlmessage');
      }
      else {
        $filename = ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube');
        $ext = '.' . ($mimetype == 'text/plain' ? 'txt' : $ctype_secondary);
        $filename = ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . $ext;
      }
      $ext      = '.' . ($mimetype == 'text/plain' ? 'txt' : $ctype_secondary);
      $filename .= $ext;
      $filename = preg_replace('[\r\n]', '', $filename);
      if ($browser->ie && $browser->ver < 7)