Ticket #2505: azure.patch

File azure.patch, 588 bytes (added by nanasess, 10 years ago)

暫定対応のパッチ

  • data/module/Smarty/libs/internals/core.write_file.php

    a b  
    3737    fwrite($fd, $params['contents']); 
    3838    fclose($fd); 
    3939 
     40    $params['filename'] = str_replace('\\', '/', $params['filename']); 
     41    $params['filename'] = str_replace('//', '/', $params['filename']); 
     42 
    4043    if (DIRECTORY_SEPARATOR == '\\' || !@rename($_tmp_file, $params['filename'])) { 
    4144        // On platforms and filesystems that cannot overwrite with rename()  
    4245        // delete the file before renaming it -- because windows always suffers