Changeset 1606 for branches/2.0/expressoMail1_2
- Timestamp:
- 11/09/09 13:05:06 (15 years ago)
- 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 459 459 460 460 $tempDir = ini_get("session.save_path"); 461 $tempSubDir = md5(microtime());461 $tempSubDir = $_SESSION['phpgw_session']['session_id']; 462 462 $fileNames = ''; 463 463 exec('mkdir ' . $tempDir . '/'.$tempSubDir.'; cd ' . $tempDir . '/'.$tempSubDir); … … 468 468 $imap_attachment = new imap_attachment(); 469 469 $attachments = $imap_attachment->download_attachment($this->mbox_stream, $id_number); 470 470 471 471 foreach($attachments as $i => $attachment){ 472 472 if($i && $i == 'names') 473 473 continue; 474 474 475 476 475 $fileName = $this->remove_accents($attachment['name']); 477 476 $f = fopen($tempDir . '/'.$tempSubDir.'/'.$fileName,"wb"); … … 501 500 } 502 501 else 503 $file = false; 504 502 $file = false; 505 503 return $file; 506 504 } -
branches/2.0/expressoMail1_2/inc/gotodownload.php
r1247 r1606 167 167 } 168 168 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)) 170 170 { 171 171 readfile($strFileName);
Note: See TracChangeset
for help on using the changeset viewer.