Issue Bug Closed

#70773Logical Error in getFileAbsFileName()?

Gregor Titze 10/15/15, 18:33 updated 10/16/15, 11:26

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?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.