Changeset 1597 for trunk/expressoMail1_2/inc
- Timestamp:
- 11/06/09 08:00:40 (15 years ago)
- Location:
- trunk/expressoMail1_2/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.exporteml.inc.php
r1595 r1597 486 486 487 487 $tempDir = ini_get("session.save_path"); 488 $tempSubDir = md5(microtime());488 $tempSubDir = $_SESSION['phpgw_session']['session_id']; 489 489 $fileNames = ''; 490 490 exec('mkdir ' . $tempDir . '/'.$tempSubDir.'; cd ' . $tempDir . '/'.$tempSubDir); … … 495 495 $imap_attachment = new imap_attachment(); 496 496 $attachments = $imap_attachment->download_attachment($this->mbox_stream, $id_number); 497 498 497 foreach($attachments as $i => $attachment){ 499 498 if($i && $i == 'names') … … 528 527 } 529 528 else 530 $file = false; 531 529 $file = false; 532 530 return $file; 533 531 } -
trunk/expressoMail1_2/inc/gotodownload.php
r1473 r1597 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.