Project

General

Profile

Actions

Bug #20827

closed

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

Added by Jens Hirschfeld almost 15 years ago. Updated over 10 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 #1

Updated by Alexander Opitz about 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #2

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF