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 37 37 fwrite($fd, $params['contents']); 38 38 fclose($fd); 39 39 40 $params['filename'] = str_replace('\\', '/', $params['filename']); 41 $params['filename'] = str_replace('//', '/', $params['filename']); 42 40 43 if (DIRECTORY_SEPARATOR == '\\' || !@rename($_tmp_file, $params['filename'])) { 41 44 // On platforms and filesystems that cannot overwrite with rename() 42 45 // delete the file before renaming it -- because windows always suffers