Changeset 6100 in subversion


Ignore:
Timestamp:
Apr 19, 2012 2:38:59 AM (13 months ago)
Author:
alec
Message:
  • Fix attachment name regression (#1488446)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/get.inc

    r6073 r6100  
    152152      } 
    153153      else { 
    154         $filename = ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube'); 
    155       } 
    156  
    157       $ext      = '.' . ($mimetype == 'text/plain' ? 'txt' : $ctype_secondary); 
    158       $filename .= $ext; 
     154        $ext = '.' . ($mimetype == 'text/plain' ? 'txt' : $ctype_secondary); 
     155        $filename = ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . $ext; 
     156      } 
     157 
    159158      $filename = preg_replace('[\r\n]', '', $filename); 
    160159 
Note: See TracChangeset for help on using the changeset viewer.