Bug #20827
closedcli_dispatch.phpsh: Checking if is relative path is case-sensitive
0%
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)
Updated by Alexander Opitz over 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)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.