Project

General

Profile

Actions

Bug #70773

closed

Logical Error in getFileAbsFileName()?

Added by Gregor Titze over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2015-10-15
Due date:
% Done:

0%

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

Description

Looking for some other stuff i just figured out that the condition on line 3727 of the GeneralUtility.php in the 7.5.0 Typo3 release seems not logical to me.

Calling GeneralUtility::getFileAbsFileName() with $onlyRelative = TRUE should from my understanding set the $filename to an empty string if the path is an absolute path - this is what the comment proposes. However, only if self::isFirstPartOfStr($filename, $relPathPrefix) === TRUE this path is actually an absolute path in PATH_site.

Therefore, the negation seems to make the function misbehave regarding its documentation. Or am I wrong?

Actions

Also available in: Atom PDF