Issue Bug Closed

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

Jens Hirschfeld 08/04/09, 10:57 updated 09/09/13, 11:14

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)

Reviews 0

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