Project

General

Profile

Actions

Bug #88116

closed

TYPO3\CMS\Core\Utility\PathUtility::isAbsolutePath detection for windows environment not correct

Added by Alexander Grein over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-04-09
Due date:
% Done:

100%

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

Description

This:

// On Windows also a path starting with a drive letter is absolute: X:/
if (Environment::isWindows() && (substr($path, 1, 2) === ':/' || substr($path, 1, 2) === ':\\')) {
    return true;
}

should be
// On Windows also a path starting with a drive letter is absolute: X:/
if (Environment::isWindows() && (substr($path, 1, 2) === ':/' || substr($path, 1, 3) === ':\\')) {
    return true;
}

Currently the second or condition will never be true.

Affected Versions:
Master, 9.5, 8.7

Actions

Also available in: Atom PDF