Changeset 1606


Ignore:
Timestamp:
11/09/09 13:05:06 (14 years ago)
Author:
wmerlotto
Message:

Ticket #725 - Replicando a correção (da [1597]) para o branch2.0

Location:
branches/2.0/expressoMail1_2/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/expressoMail1_2/inc/class.exporteml.inc.php

    r1377 r1606  
    459459                 
    460460                $tempDir = ini_get("session.save_path"); 
    461                 $tempSubDir = md5(microtime()); 
     461                $tempSubDir = $_SESSION['phpgw_session']['session_id']; 
    462462                $fileNames = ''; 
    463463                exec('mkdir ' . $tempDir . '/'.$tempSubDir.'; cd ' . $tempDir . '/'.$tempSubDir); 
     
    468468                $imap_attachment = new imap_attachment(); 
    469469                $attachments = $imap_attachment->download_attachment($this->mbox_stream, $id_number); 
    470                  
     470 
    471471                foreach($attachments as $i => $attachment){ 
    472472                        if($i && $i == 'names') 
    473473                                continue; 
    474474                                                                                                                                                 
    475                          
    476475                        $fileName = $this->remove_accents($attachment['name']); 
    477476                        $f = fopen($tempDir . '/'.$tempSubDir.'/'.$fileName,"wb"); 
     
    501500                } 
    502501                else  
    503                         $file = false; 
    504                                  
     502                        $file = false;   
    505503                return $file; 
    506504        } 
  • branches/2.0/expressoMail1_2/inc/gotodownload.php

    r1247 r1606  
    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.