Changeset 1597


Ignore:
Timestamp:
11/06/09 08:00:40 (14 years ago)
Author:
amuller
Message:

Ticket #725 - Corrigindo problema de todos os anexos quando sao baixados

Location:
trunk/expressoMail1_2/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.exporteml.inc.php

    r1595 r1597  
    486486                 
    487487                $tempDir = ini_get("session.save_path"); 
    488                 $tempSubDir = md5(microtime()); 
     488                $tempSubDir = $_SESSION['phpgw_session']['session_id']; 
    489489                $fileNames = ''; 
    490490                exec('mkdir ' . $tempDir . '/'.$tempSubDir.'; cd ' . $tempDir . '/'.$tempSubDir); 
     
    495495                $imap_attachment = new imap_attachment(); 
    496496                $attachments = $imap_attachment->download_attachment($this->mbox_stream, $id_number); 
    497                  
    498497                foreach($attachments as $i => $attachment){ 
    499498                        if($i && $i == 'names') 
     
    528527                } 
    529528                else  
    530                         $file = false; 
    531                                  
     529                        $file = false;   
    532530                return $file; 
    533531        } 
  • trunk/expressoMail1_2/inc/gotodownload.php

    r1473 r1597  
    167167                } 
    168168                else 
    169                         if (preg_match("#^".ini_get('session.save_path')."/[A-z]+_".$GLOBALS['phpgw']->session->sessionid."[A-z0-9]*(\.[A-z]{3,4})?$#",$strFileName)) 
     169                        if (preg_match("#^".ini_get('session.save_path')."/(".$GLOBALS['phpgw']->session->sessionid."/)*[A-z]+_".$GLOBALS['phpgw']->session->sessionid."[A-z0-9]*(\.[A-z]{3,4})?$#",$strFileName)) 
    170170                        { 
    171171                                readfile($strFileName); 
Note: See TracChangeset for help on using the changeset viewer.