Project

General

Profile

Actions

Bug #77646

closed

GeneralUtility::getFileAbsFileName should use DIRECTORY_SEPARATOR

Added by Lukas Schmidt over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-08-26
Due date:
% Done:

0%

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

Description

When the function getFileAbsFileName in GeneralUtility is called with $filename being in Windows format, e.g. samplefolder\samplefile.ext, it cannot determine the path because it relies on "/" being the directory separator.

I suggest using DIRECTORY_SEPARATOR instead.

Actions #1

Updated by Jigal van Hemert over 7 years ago

  • Status changed from New to Rejected

We stick to forward slashes only in file paths. This works on unix/linux, mac and windows. If you get a path back from a function (PHP functions for example) you can call \TYPO3\CMS\Core\Utility\GeneralUtility::fixWindowsFilePath() to make sure you have correct path separators.

Actions

Also available in: Atom PDF