Project

General

Profile

Actions

Bug #15794

closed

'/\' in path tempnam() path

Added by Jens Hirschfeld over 18 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-03-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

under windows the t3lib_div::tempnam() function retruns a path to the created tempfile with '/\' in it.
with fopen() the path could be used.
but t3lib_div::unlink_tempfile() cant delete the tempfile, because the bachslash '\' is in the path.

example:
t3lib_div::tempnam('fdf');
returns: 'D:/xampp/htdocs/dummy38/typo3temp/\fdf103.tmp'

if the backslash is removed in the path, the file could be successfully unlinked by unlink_tempfile().

Windows XP SP2
PHP Version 5.0.3
APACHE
(issue imported from #M2813)

Actions

Also available in: Atom PDF