Changeset 4999


Ignore:
Timestamp:
Aug 26, 2010 2:29:50 PM (4 years ago)
Author:
tboeckel
Message:
  • YAM_MA.c: when exporting mails the file name returned by the file requester is now checked to be non-empty. Although I could not reproduce ticket #154 this should fix it and thus closes #154.
Location:
branches/bugfix-2.6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/bugfix-2.6

    • Property svn:mergeinfo changed
      /trunkmerged: 4658
  • branches/bugfix-2.6/ChangeLog

    r4998 r4999  
    2424    example the IDEA packer was no longer recognized as being able to encrypt. 
    2525    This closes #152. 
     26  * YAM_MA.c: when exporting mails the file name returned by the file requester 
     27    is now checked to be non-empty. Although I could not reproduce ticket #154 
     28    this should fix it and thus closes #154. 
    2629 
    2730#### YAM 2.6 RELEASE #################################################### 
  • branches/bugfix-2.6/src/YAM_MA.c

    r4493 r4999  
    28992899        if((frc = ReqFile(ASL_EXPORT, G->MA->GUI.WI, tr(MSG_MA_MESSAGEEXPORT), REQF_SAVEMODE, C->DetachDir, "")) != NULL) 
    29002900        { 
    2901           filename = AddPath(outname, frc->drawer, frc->file, sizeof(outname)); 
     2901          // avoid empty file names 
     2902          if(frc->file == NULL || frc->file[0] == '\0') 
     2903            filename = NULL; 
     2904          else 
     2905            filename = AddPath(outname, frc->drawer, frc->file, sizeof(outname)); 
     2906 
     2907          // now check whether the file exists and ask if it should be overwritten 
    29022908          if(FileExists(filename) == TRUE) 
    29032909          { 
Note: See TracChangeset for help on using the changeset viewer.