Changeset d079afd in github


Ignore:
Timestamp:
Dec 2, 2009 5:48:06 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
6d13ca1
Parents:
e2927b0
Message:
  • use absolute paths to prevent errors when writing to logfiles from shutdown function
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/filesystem_attachments/filesystem_attachments.php

    rebf8726 rd079afd  
    5353 
    5454        // use common temp dir for file uploads 
    55         // #1484529: we need absolute path on Windows for move_uploaded_file() 
    56         $temp_dir = realpath($rcmail->config->get('temp_dir')); 
     55        $temp_dir = $rcmail->config->get('temp_dir'); 
    5756        $tmpfname = tempnam($temp_dir, 'rcmAttmnt'); 
    5857 
     
    7877        if (!$args['path']) { 
    7978            $rcmail = rcmail::get_instance(); 
    80             $temp_dir = unslashify($rcmail->config->get('temp_dir')); 
     79            $temp_dir = $rcmail->config->get('temp_dir'); 
    8180            $tmp_path = tempnam($temp_dir, 'rcmAttmnt'); 
    8281 
  • program/include/rcube_config.php

    r3597cc2 rd079afd  
    6969 
    7070    // fix paths 
    71     $this->prop['log_dir'] = $this->prop['log_dir'] ? unslashify($this->prop['log_dir']) : INSTALL_PATH . 'logs'; 
    72     $this->prop['temp_dir'] = $this->prop['temp_dir'] ? unslashify($this->prop['temp_dir']) : INSTALL_PATH . 'temp'; 
    73  
     71    $this->prop['log_dir'] = $this->prop['log_dir'] ? realpath(unslashify($this->prop['log_dir'])) : INSTALL_PATH . 'logs'; 
     72    $this->prop['temp_dir'] = $this->prop['temp_dir'] ? realpath(unslashify($this->prop['temp_dir'])) : INSTALL_PATH . 'temp'; 
     73     
    7474    // fix default imap folders encoding 
    7575    foreach (array('drafts_mbox', 'junk_mbox', 'sent_mbox', 'trash_mbox') as $folder) 
Note: See TracChangeset for help on using the changeset viewer.