Project

General

Profile

Actions

Bug #20827

closed

cli_dispatch.phpsh: Checking if is relative path is case-sensitive

Added by Jens Hirschfeld about 15 years ago. Updated almost 11 years ago.

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

0%

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

Description

If the Path to the cli_dispatch.phpsh is given in lowercase it could not be resolved.

Resolving seems to be easy:

In cli_dispatch.phpsh on line 56 added an i to the Regular Expression
if (!preg_match('/^([A-Z]:)?\\\/', $temp_PATH_thisScript)) {

changed in:
if (!preg_match('/^([A-Z]:)?\\\/i', $temp_PATH_thisScript)) {
I added also a possible resolution for bug #20657, where 'c:/' is not recognized as absolute path.
if (!preg_match('/^([A-Z]:)?[\\\,\/]{1}/i', $temp_PATH_thisScript)) {

And a last change to the regular expression is changing that, the drive letter is optional (? -> {1}).
if (!preg_match('/^([A-Z]:){1}[\\\,\/]{1}/i', $temp_PATH_thisScript)) {

(issue imported from #M11635)

Actions

Also available in: Atom PDF